public static final class ResourceMaintenance.Maintenance.Builder extends GeneratedMessageV3.Builder<ResourceMaintenance.Maintenance.Builder> implements ResourceMaintenance.MaintenanceOrBuilderMaintenance is the maintenance details of a resource's maintenance.
Protobuf type google.cloud.maintenance.api.v1beta.ResourceMaintenance.Maintenance
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ResourceMaintenance.Maintenance.BuilderImplements
ResourceMaintenance.MaintenanceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ResourceMaintenance.Maintenance.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ResourceMaintenance.Maintenance.Builder |
|
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 |
|
clearCategory()
public ResourceMaintenance.Maintenance.Builder clearCategory()Output only. The category of the maintenance.
.google.cloud.maintenance.api.v1beta.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. |
clearField(Descriptors.FieldDescriptor field)
public ResourceMaintenance.Maintenance.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
ResourceMaintenance.Maintenance.Builder |
|
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. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ResourceMaintenance.Maintenance.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
ResourceMaintenance.Maintenance.Builder |
|
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. |
clone()
public ResourceMaintenance.Maintenance.Builder clone()| Returns | |
|---|---|
| Type | Description |
ResourceMaintenance.Maintenance.Builder |
|
getCategory()
public MaintenanceCategory getCategory()Output only. The category of the maintenance.
.google.cloud.maintenance.api.v1beta.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.v1beta.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 |
|
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ResourceMaintenance.Maintenance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ResourceMaintenance.Maintenance.Builder |
|
setCategory(MaintenanceCategory value)
public ResourceMaintenance.Maintenance.Builder setCategory(MaintenanceCategory value)Output only. The category of the maintenance.
.google.cloud.maintenance.api.v1beta.MaintenanceCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
MaintenanceCategoryThe 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.v1beta.MaintenanceCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe 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 |
StringThe 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 |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceMaintenance.Maintenance.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ResourceMaintenance.Maintenance.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ResourceMaintenance.Maintenance.Builder |
|
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 |
StringThe 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 |
ByteStringThe bytes for maintenanceName to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceMaintenance.Maintenance.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ResourceMaintenance.Maintenance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ResourceMaintenance.Maintenance.Builder |
|
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 |
StringThe 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 |
ByteStringThe bytes for title to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceMaintenance.Maintenance.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ResourceMaintenance.Maintenance.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ResourceMaintenance.Maintenance.Builder |
|