Class ResourceMaintenance.Maintenance.Builder (0.19.0)

public static final class ResourceMaintenance.Maintenance.Builder extends GeneratedMessage.Builder<ResourceMaintenance.Maintenance.Builder> implements ResourceMaintenance.MaintenanceOrBuilder

Maintenance is the maintenance details of a resource's maintenance.

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

Static Methods

getDescriptor()

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

Methods

build()

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

buildPartial()

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

clear()

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

clearCategory()

public ResourceMaintenance.Maintenance.Builder clearCategory()

Output only. The category of the maintenance.

.google.cloud.maintenance.api.v1.MaintenanceCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceMaintenance.Maintenance.Builder

This builder for chaining.

clearDescription()

public ResourceMaintenance.Maintenance.Builder clearDescription()

Output only. The description of the maintenance.

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

Returns
Type Description
ResourceMaintenance.Maintenance.Builder

This builder for chaining.

clearMaintenanceName()

public ResourceMaintenance.Maintenance.Builder clearMaintenanceName()

Maintenance is the name of the corresponding maintenance resource following the standard naming scheme: "{maintenance-id}"

string maintenance_name = 1;

Returns
Type Description
ResourceMaintenance.Maintenance.Builder

This builder for chaining.

clearTitle()

public ResourceMaintenance.Maintenance.Builder clearTitle()

Output only. The title of the maintenance.

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

Returns
Type Description
ResourceMaintenance.Maintenance.Builder

This builder for chaining.

getCategory()

public MaintenanceCategory getCategory()

Output only. The category of the maintenance.

.google.cloud.maintenance.api.v1.MaintenanceCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MaintenanceCategory

The category.

getCategoryValue()

public int getCategoryValue()

Output only. The category of the maintenance.

.google.cloud.maintenance.api.v1.MaintenanceCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for category.

getDefaultInstanceForType()

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

getDescription()

public String getDescription()

Output only. The description of the maintenance.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Output only. The description of the maintenance.

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

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getMaintenanceName()

public String getMaintenanceName()

Maintenance is the name of the corresponding maintenance resource following the standard naming scheme: "{maintenance-id}"

string maintenance_name = 1;

Returns
Type Description
String

The maintenanceName.

getMaintenanceNameBytes()

public ByteString getMaintenanceNameBytes()

Maintenance is the name of the corresponding maintenance resource following the standard naming scheme: "{maintenance-id}"

string maintenance_name = 1;

Returns
Type Description
ByteString

The bytes for maintenanceName.

getTitle()

public String getTitle()

Output only. The title of the maintenance.

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

Returns
Type Description
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Output only. The title of the maintenance.

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

Returns
Type Description
ByteString

The bytes for title.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ResourceMaintenance.Maintenance other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCategory(MaintenanceCategory value)

public ResourceMaintenance.Maintenance.Builder setCategory(MaintenanceCategory value)

Output only. The category of the maintenance.

.google.cloud.maintenance.api.v1.MaintenanceCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value MaintenanceCategory

The category to set.

Returns
Type Description
ResourceMaintenance.Maintenance.Builder

This builder for chaining.

setCategoryValue(int value)

public ResourceMaintenance.Maintenance.Builder setCategoryValue(int value)

Output only. The category of the maintenance.

.google.cloud.maintenance.api.v1.MaintenanceCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for category to set.

Returns
Type Description
ResourceMaintenance.Maintenance.Builder

This builder for chaining.

setDescription(String value)

public ResourceMaintenance.Maintenance.Builder setDescription(String value)

Output only. The description of the maintenance.

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

Parameter
Name Description
value String

The description to set.

Returns
Type Description
ResourceMaintenance.Maintenance.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ResourceMaintenance.Maintenance.Builder setDescriptionBytes(ByteString value)

Output only. The description of the maintenance.

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

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
ResourceMaintenance.Maintenance.Builder

This builder for chaining.

setMaintenanceName(String value)

public ResourceMaintenance.Maintenance.Builder setMaintenanceName(String value)

Maintenance is the name of the corresponding maintenance resource following the standard naming scheme: "{maintenance-id}"

string maintenance_name = 1;

Parameter
Name Description
value String

The maintenanceName to set.

Returns
Type Description
ResourceMaintenance.Maintenance.Builder

This builder for chaining.

setMaintenanceNameBytes(ByteString value)

public ResourceMaintenance.Maintenance.Builder setMaintenanceNameBytes(ByteString value)

Maintenance is the name of the corresponding maintenance resource following the standard naming scheme: "{maintenance-id}"

string maintenance_name = 1;

Parameter
Name Description
value ByteString

The bytes for maintenanceName to set.

Returns
Type Description
ResourceMaintenance.Maintenance.Builder

This builder for chaining.

setTitle(String value)

public ResourceMaintenance.Maintenance.Builder setTitle(String value)

Output only. The title of the maintenance.

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

Parameter
Name Description
value String

The title to set.

Returns
Type Description
ResourceMaintenance.Maintenance.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public ResourceMaintenance.Maintenance.Builder setTitleBytes(ByteString value)

Output only. The title of the maintenance.

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

Parameter
Name Description
value ByteString

The bytes for title to set.

Returns
Type Description
ResourceMaintenance.Maintenance.Builder

This builder for chaining.