Class ResourceMaintenance.Resource.Builder (0.2.0)

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

Resource contains information about the resource affected by maintenance.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResourceMaintenance.Resource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResourceMaintenance.Resource.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public ResourceMaintenance.Resource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

public ResourceMaintenance.Resource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ResourceMaintenance.Resource.Builder
Overrides

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourceMaintenance.Resource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResourceMaintenance.Resource.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ResourceMaintenance.Resource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ResourceMaintenance.Resource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ResourceMaintenance.Resource.Builder
Overrides

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.

setUnknownFields(UnknownFieldSet unknownFields)

public final ResourceMaintenance.Resource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResourceMaintenance.Resource.Builder
Overrides