public static final class ResourceMaintenance.Builder extends GeneratedMessageV3.Builder<ResourceMaintenance.Builder> implements ResourceMaintenanceOrBuilder
ResourceMaintenance is a resource that represents a maintenance operation on a resource.
Protobuf type google.cloud.maintenance.api.v1beta.ResourceMaintenance
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ResourceMaintenance.BuilderImplements
ResourceMaintenanceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllControls(Iterable<? extends MaintenanceControl> values)
public ResourceMaintenance.Builder addAllControls(Iterable<? extends MaintenanceControl> values)
Output only. The controls of the maintenance.
repeated .google.cloud.maintenance.api.v1beta.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.maintenance.api.v1beta.MaintenanceControl> |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
addControls(MaintenanceControl value)
public ResourceMaintenance.Builder addControls(MaintenanceControl value)
Output only. The controls of the maintenance.
repeated .google.cloud.maintenance.api.v1beta.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
MaintenanceControl |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
addControls(MaintenanceControl.Builder builderForValue)
public ResourceMaintenance.Builder addControls(MaintenanceControl.Builder builderForValue)
Output only. The controls of the maintenance.
repeated .google.cloud.maintenance.api.v1beta.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
MaintenanceControl.Builder |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
addControls(int index, MaintenanceControl value)
public ResourceMaintenance.Builder addControls(int index, MaintenanceControl value)
Output only. The controls of the maintenance.
repeated .google.cloud.maintenance.api.v1beta.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
MaintenanceControl |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
addControls(int index, MaintenanceControl.Builder builderForValue)
public ResourceMaintenance.Builder addControls(int index, MaintenanceControl.Builder builderForValue)
Output only. The controls of the maintenance.
repeated .google.cloud.maintenance.api.v1beta.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
MaintenanceControl.Builder |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
addControlsBuilder()
public MaintenanceControl.Builder addControlsBuilder()
Output only. The controls of the maintenance.
repeated .google.cloud.maintenance.api.v1beta.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
MaintenanceControl.Builder |
addControlsBuilder(int index)
public MaintenanceControl.Builder addControlsBuilder(int index)
Output only. The controls of the maintenance.
repeated .google.cloud.maintenance.api.v1beta.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
MaintenanceControl.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ResourceMaintenance.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
build()
public ResourceMaintenance build()
Returns | |
---|---|
Type | Description |
ResourceMaintenance |
buildPartial()
public ResourceMaintenance buildPartial()
Returns | |
---|---|
Type | Description |
ResourceMaintenance |
clear()
public ResourceMaintenance.Builder clear()
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
clearAnnotations()
public ResourceMaintenance.Builder clearAnnotations()
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
clearControls()
public ResourceMaintenance.Builder clearControls()
Output only. The controls of the maintenance.
repeated .google.cloud.maintenance.api.v1beta.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
clearCreateTime()
public ResourceMaintenance.Builder clearCreateTime()
Output only. The create time of the resource maintenance.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
clearEtag()
public ResourceMaintenance.Builder clearEtag()
Output only. An opaque value that uniquely identifies a version or generation of a resource. It can be used to confirm that the client and server agree on the ordering of a resource being written.
string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ResourceMaintenance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
clearLabels()
public ResourceMaintenance.Builder clearLabels()
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
clearMaintenance()
public ResourceMaintenance.Builder clearMaintenance()
Output only. The details of the maintenance.
.google.cloud.maintenance.api.v1beta.ResourceMaintenance.Maintenance maintenance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
clearMaintenanceCancelTime()
public ResourceMaintenance.Builder clearMaintenanceCancelTime()
Output only. The time when the resource maintenance was cancelled.
.google.protobuf.Timestamp maintenance_cancel_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
clearMaintenanceEndTime()
public ResourceMaintenance.Builder clearMaintenanceEndTime()
Output only. The time when the resource maintenance has completed.
.google.protobuf.Timestamp maintenance_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
clearMaintenanceScheduledEndTime()
public ResourceMaintenance.Builder clearMaintenanceScheduledEndTime()
Output only. The time when the maintenance on the resource was scheduled to end.
.google.protobuf.Timestamp maintenance_scheduled_end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
clearMaintenanceScheduledStartTime()
public ResourceMaintenance.Builder clearMaintenanceScheduledStartTime()
Output only. The time when the maintenance on the resource was scheduled to start.
.google.protobuf.Timestamp maintenance_scheduled_start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
clearMaintenanceStartTime()
public ResourceMaintenance.Builder clearMaintenanceStartTime()
Output only. The time when the resource maintenance has started.
.google.protobuf.Timestamp maintenance_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
clearName()
public ResourceMaintenance.Builder clearName()
Identifier. The name of the resource_maintenance resource.
Format:
"projects/{project}/locations/{location}/resourceMaintenance/{resource-maintenance-id}"
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ResourceMaintenance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
clearResource()
public ResourceMaintenance.Builder clearResource()
Output only. The resource spec of the resource maintenance.
.google.cloud.maintenance.api.v1beta.ResourceMaintenance.Resource resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
clearState()
public ResourceMaintenance.Builder clearState()
Output only. The state of the resource maintenance.
.google.cloud.maintenance.api.v1beta.ResourceMaintenance.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
This builder for chaining. |
clearUid()
public ResourceMaintenance.Builder clearUid()
Output only. The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
This builder for chaining. |
clearUpdateTime()
public ResourceMaintenance.Builder clearUpdateTime()
Output only. The update time of the resource maintenance.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
clearUserControllable()
public ResourceMaintenance.Builder clearUserControllable()
Output only. Indicates whether the user has some control over that maintenance, either proactively before maintenance was scheduled with maintenance policy or with reactive controls after it was scheduled (see controls field)
bool user_controllable = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
This builder for chaining. |
clone()
public ResourceMaintenance.Builder clone()
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
containsAnnotations(String key)
public boolean containsAnnotations(String key)
Optional. Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/user-guide/annotations
map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
boolean |
containsLabels(String key)
public boolean containsLabels(String key)
Optional. The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels.
map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
boolean |
getAnnotations() (deprecated)
public Map<String,String> getAnnotations()
Use #getAnnotationsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getAnnotationsCount()
public int getAnnotationsCount()
Optional. Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/user-guide/annotations
map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
getAnnotationsMap()
public Map<String,String> getAnnotationsMap()
Optional. Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/user-guide/annotations
map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Map<String,String> |
getAnnotationsOrDefault(String key, String defaultValue)
public String getAnnotationsOrDefault(String key, String defaultValue)
Optional. Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/user-guide/annotations
map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
key |
String |
defaultValue |
String |
Returns | |
---|---|
Type | Description |
String |
getAnnotationsOrThrow(String key)
public String getAnnotationsOrThrow(String key)
Optional. Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/user-guide/annotations
map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
String |
getControls(int index)
public MaintenanceControl getControls(int index)
Output only. The controls of the maintenance.
repeated .google.cloud.maintenance.api.v1beta.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
MaintenanceControl |
getControlsBuilder(int index)
public MaintenanceControl.Builder getControlsBuilder(int index)
Output only. The controls of the maintenance.
repeated .google.cloud.maintenance.api.v1beta.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
MaintenanceControl.Builder |
getControlsBuilderList()
public List<MaintenanceControl.Builder> getControlsBuilderList()
Output only. The controls of the maintenance.
repeated .google.cloud.maintenance.api.v1beta.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
List<Builder> |
getControlsCount()
public int getControlsCount()
Output only. The controls of the maintenance.
repeated .google.cloud.maintenance.api.v1beta.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int |
getControlsList()
public List<MaintenanceControl> getControlsList()
Output only. The controls of the maintenance.
repeated .google.cloud.maintenance.api.v1beta.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
List<MaintenanceControl> |
getControlsOrBuilder(int index)
public MaintenanceControlOrBuilder getControlsOrBuilder(int index)
Output only. The controls of the maintenance.
repeated .google.cloud.maintenance.api.v1beta.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
MaintenanceControlOrBuilder |
getControlsOrBuilderList()
public List<? extends MaintenanceControlOrBuilder> getControlsOrBuilderList()
Output only. The controls of the maintenance.
repeated .google.cloud.maintenance.api.v1beta.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.maintenance.api.v1beta.MaintenanceControlOrBuilder> |
getCreateTime()
public Timestamp getCreateTime()
Output only. The create time of the resource maintenance.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. The create time of the resource maintenance.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The create time of the resource maintenance.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public ResourceMaintenance getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ResourceMaintenance |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getEtag()
public String getEtag()
Output only. An opaque value that uniquely identifies a version or generation of a resource. It can be used to confirm that the client and server agree on the ordering of a resource being written.
string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
String |
The etag. |
getEtagBytes()
public ByteString getEtagBytes()
Output only. An opaque value that uniquely identifies a version or generation of a resource. It can be used to confirm that the client and server agree on the ordering of a resource being written.
string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for etag. |
getLabels() (deprecated)
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
Optional. The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels.
map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
getLabelsMap()
public Map<String,String> getLabelsMap()
Optional. The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels.
map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Optional. The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels.
map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
key |
String |
defaultValue |
String |
Returns | |
---|---|
Type | Description |
String |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Optional. The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels.
map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
String |
getMaintenance()
public ResourceMaintenance.Maintenance getMaintenance()
Output only. The details of the maintenance.
.google.cloud.maintenance.api.v1beta.ResourceMaintenance.Maintenance maintenance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Maintenance |
The maintenance. |
getMaintenanceBuilder()
public ResourceMaintenance.Maintenance.Builder getMaintenanceBuilder()
Output only. The details of the maintenance.
.google.cloud.maintenance.api.v1beta.ResourceMaintenance.Maintenance maintenance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Maintenance.Builder |
getMaintenanceCancelTime()
public Timestamp getMaintenanceCancelTime()
Output only. The time when the resource maintenance was cancelled.
.google.protobuf.Timestamp maintenance_cancel_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp |
The maintenanceCancelTime. |
getMaintenanceCancelTimeBuilder()
public Timestamp.Builder getMaintenanceCancelTimeBuilder()
Output only. The time when the resource maintenance was cancelled.
.google.protobuf.Timestamp maintenance_cancel_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getMaintenanceCancelTimeOrBuilder()
public TimestampOrBuilder getMaintenanceCancelTimeOrBuilder()
Output only. The time when the resource maintenance was cancelled.
.google.protobuf.Timestamp maintenance_cancel_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getMaintenanceEndTime()
public Timestamp getMaintenanceEndTime()
Output only. The time when the resource maintenance has completed.
.google.protobuf.Timestamp maintenance_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp |
The maintenanceEndTime. |
getMaintenanceEndTimeBuilder()
public Timestamp.Builder getMaintenanceEndTimeBuilder()
Output only. The time when the resource maintenance has completed.
.google.protobuf.Timestamp maintenance_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getMaintenanceEndTimeOrBuilder()
public TimestampOrBuilder getMaintenanceEndTimeOrBuilder()
Output only. The time when the resource maintenance has completed.
.google.protobuf.Timestamp maintenance_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getMaintenanceOrBuilder()
public ResourceMaintenance.MaintenanceOrBuilder getMaintenanceOrBuilder()
Output only. The details of the maintenance.
.google.cloud.maintenance.api.v1beta.ResourceMaintenance.Maintenance maintenance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ResourceMaintenance.MaintenanceOrBuilder |
getMaintenanceScheduledEndTime()
public Timestamp getMaintenanceScheduledEndTime()
Output only. The time when the maintenance on the resource was scheduled to end.
.google.protobuf.Timestamp maintenance_scheduled_end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp |
The maintenanceScheduledEndTime. |
getMaintenanceScheduledEndTimeBuilder()
public Timestamp.Builder getMaintenanceScheduledEndTimeBuilder()
Output only. The time when the maintenance on the resource was scheduled to end.
.google.protobuf.Timestamp maintenance_scheduled_end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getMaintenanceScheduledEndTimeOrBuilder()
public TimestampOrBuilder getMaintenanceScheduledEndTimeOrBuilder()
Output only. The time when the maintenance on the resource was scheduled to end.
.google.protobuf.Timestamp maintenance_scheduled_end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getMaintenanceScheduledStartTime()
public Timestamp getMaintenanceScheduledStartTime()
Output only. The time when the maintenance on the resource was scheduled to start.
.google.protobuf.Timestamp maintenance_scheduled_start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp |
The maintenanceScheduledStartTime. |
getMaintenanceScheduledStartTimeBuilder()
public Timestamp.Builder getMaintenanceScheduledStartTimeBuilder()
Output only. The time when the maintenance on the resource was scheduled to start.
.google.protobuf.Timestamp maintenance_scheduled_start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getMaintenanceScheduledStartTimeOrBuilder()
public TimestampOrBuilder getMaintenanceScheduledStartTimeOrBuilder()
Output only. The time when the maintenance on the resource was scheduled to start.
.google.protobuf.Timestamp maintenance_scheduled_start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getMaintenanceStartTime()
public Timestamp getMaintenanceStartTime()
Output only. The time when the resource maintenance has started.
.google.protobuf.Timestamp maintenance_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp |
The maintenanceStartTime. |
getMaintenanceStartTimeBuilder()
public Timestamp.Builder getMaintenanceStartTimeBuilder()
Output only. The time when the resource maintenance has started.
.google.protobuf.Timestamp maintenance_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getMaintenanceStartTimeOrBuilder()
public TimestampOrBuilder getMaintenanceStartTimeOrBuilder()
Output only. The time when the resource maintenance has started.
.google.protobuf.Timestamp maintenance_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getMutableAnnotations() (deprecated)
public Map<String,String> getMutableAnnotations()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getMutableLabels() (deprecated)
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getName()
public String getName()
Identifier. The name of the resource_maintenance resource.
Format:
"projects/{project}/locations/{location}/resourceMaintenance/{resource-maintenance-id}"
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()
Identifier. The name of the resource_maintenance resource.
Format:
"projects/{project}/locations/{location}/resourceMaintenance/{resource-maintenance-id}"
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getResource()
public ResourceMaintenance.Resource getResource()
Output only. The resource spec of the resource maintenance.
.google.cloud.maintenance.api.v1beta.ResourceMaintenance.Resource resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Resource |
The resource. |
getResourceBuilder()
public ResourceMaintenance.Resource.Builder getResourceBuilder()
Output only. The resource spec of the resource maintenance.
.google.cloud.maintenance.api.v1beta.ResourceMaintenance.Resource resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Resource.Builder |
getResourceOrBuilder()
public ResourceMaintenance.ResourceOrBuilder getResourceOrBuilder()
Output only. The resource spec of the resource maintenance.
.google.cloud.maintenance.api.v1beta.ResourceMaintenance.Resource resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ResourceMaintenance.ResourceOrBuilder |
getState()
public ResourceMaintenance.State getState()
Output only. The state of the resource maintenance.
.google.cloud.maintenance.api.v1beta.ResourceMaintenance.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ResourceMaintenance.State |
The state. |
getStateValue()
public int getStateValue()
Output only. The state of the resource maintenance.
.google.cloud.maintenance.api.v1beta.ResourceMaintenance.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for state. |
getUid()
public String getUid()
Output only. The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
Returns | |
---|---|
Type | Description |
String |
The uid. |
getUidBytes()
public ByteString getUidBytes()
Output only. The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for uid. |
getUpdateTime()
public Timestamp getUpdateTime()
Output only. The update time of the resource maintenance.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
Output only. The update time of the resource maintenance.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The update time of the resource maintenance.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getUserControllable()
public boolean getUserControllable()
Output only. Indicates whether the user has some control over that maintenance, either proactively before maintenance was scheduled with maintenance policy or with reactive controls after it was scheduled (see controls field)
bool user_controllable = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
The userControllable. |
hasCreateTime()
public boolean hasCreateTime()
Output only. The create time of the resource maintenance.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the createTime field is set. |
hasMaintenance()
public boolean hasMaintenance()
Output only. The details of the maintenance.
.google.cloud.maintenance.api.v1beta.ResourceMaintenance.Maintenance maintenance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the maintenance field is set. |
hasMaintenanceCancelTime()
public boolean hasMaintenanceCancelTime()
Output only. The time when the resource maintenance was cancelled.
.google.protobuf.Timestamp maintenance_cancel_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the maintenanceCancelTime field is set. |
hasMaintenanceEndTime()
public boolean hasMaintenanceEndTime()
Output only. The time when the resource maintenance has completed.
.google.protobuf.Timestamp maintenance_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the maintenanceEndTime field is set. |
hasMaintenanceScheduledEndTime()
public boolean hasMaintenanceScheduledEndTime()
Output only. The time when the maintenance on the resource was scheduled to end.
.google.protobuf.Timestamp maintenance_scheduled_end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the maintenanceScheduledEndTime field is set. |
hasMaintenanceScheduledStartTime()
public boolean hasMaintenanceScheduledStartTime()
Output only. The time when the maintenance on the resource was scheduled to start.
.google.protobuf.Timestamp maintenance_scheduled_start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the maintenanceScheduledStartTime field is set. |
hasMaintenanceStartTime()
public boolean hasMaintenanceStartTime()
Output only. The time when the resource maintenance has started.
.google.protobuf.Timestamp maintenance_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the maintenanceStartTime field is set. |
hasResource()
public boolean hasResource()
Output only. The resource spec of the resource maintenance.
.google.cloud.maintenance.api.v1beta.ResourceMaintenance.Resource resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the resource field is set. |
hasUpdateTime()
public boolean hasUpdateTime()
Output only. The update time of the resource maintenance.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number |
int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number |
int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
public ResourceMaintenance.Builder mergeCreateTime(Timestamp value)
Output only. The create time of the resource maintenance.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
mergeFrom(ResourceMaintenance other)
public ResourceMaintenance.Builder mergeFrom(ResourceMaintenance other)
Parameter | |
---|---|
Name | Description |
other |
ResourceMaintenance |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ResourceMaintenance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ResourceMaintenance.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
mergeMaintenance(ResourceMaintenance.Maintenance value)
public ResourceMaintenance.Builder mergeMaintenance(ResourceMaintenance.Maintenance value)
Output only. The details of the maintenance.
.google.cloud.maintenance.api.v1beta.ResourceMaintenance.Maintenance maintenance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
ResourceMaintenance.Maintenance |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
mergeMaintenanceCancelTime(Timestamp value)
public ResourceMaintenance.Builder mergeMaintenanceCancelTime(Timestamp value)
Output only. The time when the resource maintenance was cancelled.
.google.protobuf.Timestamp maintenance_cancel_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
mergeMaintenanceEndTime(Timestamp value)
public ResourceMaintenance.Builder mergeMaintenanceEndTime(Timestamp value)
Output only. The time when the resource maintenance has completed.
.google.protobuf.Timestamp maintenance_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
mergeMaintenanceScheduledEndTime(Timestamp value)
public ResourceMaintenance.Builder mergeMaintenanceScheduledEndTime(Timestamp value)
Output only. The time when the maintenance on the resource was scheduled to end.
.google.protobuf.Timestamp maintenance_scheduled_end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
mergeMaintenanceScheduledStartTime(Timestamp value)
public ResourceMaintenance.Builder mergeMaintenanceScheduledStartTime(Timestamp value)
Output only. The time when the maintenance on the resource was scheduled to start.
.google.protobuf.Timestamp maintenance_scheduled_start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
mergeMaintenanceStartTime(Timestamp value)
public ResourceMaintenance.Builder mergeMaintenanceStartTime(Timestamp value)
Output only. The time when the resource maintenance has started.
.google.protobuf.Timestamp maintenance_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
mergeResource(ResourceMaintenance.Resource value)
public ResourceMaintenance.Builder mergeResource(ResourceMaintenance.Resource value)
Output only. The resource spec of the resource maintenance.
.google.cloud.maintenance.api.v1beta.ResourceMaintenance.Resource resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
ResourceMaintenance.Resource |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ResourceMaintenance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
mergeUpdateTime(Timestamp value)
public ResourceMaintenance.Builder mergeUpdateTime(Timestamp value)
Output only. The update time of the resource maintenance.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
putAllAnnotations(Map<String,String> values)
public ResourceMaintenance.Builder putAllAnnotations(Map<String,String> values)
Optional. Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/user-guide/annotations
map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
values |
Map<String,String> |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
putAllLabels(Map<String,String> values)
public ResourceMaintenance.Builder putAllLabels(Map<String,String> values)
Optional. The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels.
map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
values |
Map<String,String> |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
putAnnotations(String key, String value)
public ResourceMaintenance.Builder putAnnotations(String key, String value)
Optional. Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/user-guide/annotations
map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
key |
String |
value |
String |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
putLabels(String key, String value)
public ResourceMaintenance.Builder putLabels(String key, String value)
Optional. The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels.
map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
key |
String |
value |
String |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
removeAnnotations(String key)
public ResourceMaintenance.Builder removeAnnotations(String key)
Optional. Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/user-guide/annotations
map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
removeControls(int index)
public ResourceMaintenance.Builder removeControls(int index)
Output only. The controls of the maintenance.
repeated .google.cloud.maintenance.api.v1beta.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
removeLabels(String key)
public ResourceMaintenance.Builder removeLabels(String key)
Optional. The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels.
map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
setControls(int index, MaintenanceControl value)
public ResourceMaintenance.Builder setControls(int index, MaintenanceControl value)
Output only. The controls of the maintenance.
repeated .google.cloud.maintenance.api.v1beta.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
MaintenanceControl |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
setControls(int index, MaintenanceControl.Builder builderForValue)
public ResourceMaintenance.Builder setControls(int index, MaintenanceControl.Builder builderForValue)
Output only. The controls of the maintenance.
repeated .google.cloud.maintenance.api.v1beta.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
MaintenanceControl.Builder |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
setCreateTime(Timestamp value)
public ResourceMaintenance.Builder setCreateTime(Timestamp value)
Output only. The create time of the resource maintenance.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public ResourceMaintenance.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. The create time of the resource maintenance.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
setEtag(String value)
public ResourceMaintenance.Builder setEtag(String value)
Output only. An opaque value that uniquely identifies a version or generation of a resource. It can be used to confirm that the client and server agree on the ordering of a resource being written.
string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
String The etag to set. |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
This builder for chaining. |
setEtagBytes(ByteString value)
public ResourceMaintenance.Builder setEtagBytes(ByteString value)
Output only. An opaque value that uniquely identifies a version or generation of a resource. It can be used to confirm that the client and server agree on the ordering of a resource being written.
string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for etag to set. |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ResourceMaintenance.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
setMaintenance(ResourceMaintenance.Maintenance value)
public ResourceMaintenance.Builder setMaintenance(ResourceMaintenance.Maintenance value)
Output only. The details of the maintenance.
.google.cloud.maintenance.api.v1beta.ResourceMaintenance.Maintenance maintenance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
ResourceMaintenance.Maintenance |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
setMaintenance(ResourceMaintenance.Maintenance.Builder builderForValue)
public ResourceMaintenance.Builder setMaintenance(ResourceMaintenance.Maintenance.Builder builderForValue)
Output only. The details of the maintenance.
.google.cloud.maintenance.api.v1beta.ResourceMaintenance.Maintenance maintenance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
ResourceMaintenance.Maintenance.Builder |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
setMaintenanceCancelTime(Timestamp value)
public ResourceMaintenance.Builder setMaintenanceCancelTime(Timestamp value)
Output only. The time when the resource maintenance was cancelled.
.google.protobuf.Timestamp maintenance_cancel_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
setMaintenanceCancelTime(Timestamp.Builder builderForValue)
public ResourceMaintenance.Builder setMaintenanceCancelTime(Timestamp.Builder builderForValue)
Output only. The time when the resource maintenance was cancelled.
.google.protobuf.Timestamp maintenance_cancel_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
setMaintenanceEndTime(Timestamp value)
public ResourceMaintenance.Builder setMaintenanceEndTime(Timestamp value)
Output only. The time when the resource maintenance has completed.
.google.protobuf.Timestamp maintenance_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
setMaintenanceEndTime(Timestamp.Builder builderForValue)
public ResourceMaintenance.Builder setMaintenanceEndTime(Timestamp.Builder builderForValue)
Output only. The time when the resource maintenance has completed.
.google.protobuf.Timestamp maintenance_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
setMaintenanceScheduledEndTime(Timestamp value)
public ResourceMaintenance.Builder setMaintenanceScheduledEndTime(Timestamp value)
Output only. The time when the maintenance on the resource was scheduled to end.
.google.protobuf.Timestamp maintenance_scheduled_end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
setMaintenanceScheduledEndTime(Timestamp.Builder builderForValue)
public ResourceMaintenance.Builder setMaintenanceScheduledEndTime(Timestamp.Builder builderForValue)
Output only. The time when the maintenance on the resource was scheduled to end.
.google.protobuf.Timestamp maintenance_scheduled_end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
setMaintenanceScheduledStartTime(Timestamp value)
public ResourceMaintenance.Builder setMaintenanceScheduledStartTime(Timestamp value)
Output only. The time when the maintenance on the resource was scheduled to start.
.google.protobuf.Timestamp maintenance_scheduled_start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
setMaintenanceScheduledStartTime(Timestamp.Builder builderForValue)
public ResourceMaintenance.Builder setMaintenanceScheduledStartTime(Timestamp.Builder builderForValue)
Output only. The time when the maintenance on the resource was scheduled to start.
.google.protobuf.Timestamp maintenance_scheduled_start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
setMaintenanceStartTime(Timestamp value)
public ResourceMaintenance.Builder setMaintenanceStartTime(Timestamp value)
Output only. The time when the resource maintenance has started.
.google.protobuf.Timestamp maintenance_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
setMaintenanceStartTime(Timestamp.Builder builderForValue)
public ResourceMaintenance.Builder setMaintenanceStartTime(Timestamp.Builder builderForValue)
Output only. The time when the resource maintenance has started.
.google.protobuf.Timestamp maintenance_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
setName(String value)
public ResourceMaintenance.Builder setName(String value)
Identifier. The name of the resource_maintenance resource.
Format:
"projects/{project}/locations/{location}/resourceMaintenance/{resource-maintenance-id}"
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public ResourceMaintenance.Builder setNameBytes(ByteString value)
Identifier. The name of the resource_maintenance resource.
Format:
"projects/{project}/locations/{location}/resourceMaintenance/{resource-maintenance-id}"
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ResourceMaintenance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
setResource(ResourceMaintenance.Resource value)
public ResourceMaintenance.Builder setResource(ResourceMaintenance.Resource value)
Output only. The resource spec of the resource maintenance.
.google.cloud.maintenance.api.v1beta.ResourceMaintenance.Resource resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
ResourceMaintenance.Resource |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
setResource(ResourceMaintenance.Resource.Builder builderForValue)
public ResourceMaintenance.Builder setResource(ResourceMaintenance.Resource.Builder builderForValue)
Output only. The resource spec of the resource maintenance.
.google.cloud.maintenance.api.v1beta.ResourceMaintenance.Resource resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
ResourceMaintenance.Resource.Builder |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
setState(ResourceMaintenance.State value)
public ResourceMaintenance.Builder setState(ResourceMaintenance.State value)
Output only. The state of the resource maintenance.
.google.cloud.maintenance.api.v1beta.ResourceMaintenance.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
ResourceMaintenance.State The state to set. |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
This builder for chaining. |
setStateValue(int value)
public ResourceMaintenance.Builder setStateValue(int value)
Output only. The state of the resource maintenance.
.google.cloud.maintenance.api.v1beta.ResourceMaintenance.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for state to set. |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
This builder for chaining. |
setUid(String value)
public ResourceMaintenance.Builder setUid(String value)
Output only. The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The uid to set. |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
This builder for chaining. |
setUidBytes(ByteString value)
public ResourceMaintenance.Builder setUidBytes(ByteString value)
Output only. The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for uid to set. |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ResourceMaintenance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
setUpdateTime(Timestamp value)
public ResourceMaintenance.Builder setUpdateTime(Timestamp value)
Output only. The update time of the resource maintenance.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
public ResourceMaintenance.Builder setUpdateTime(Timestamp.Builder builderForValue)
Output only. The update time of the resource maintenance.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
setUserControllable(boolean value)
public ResourceMaintenance.Builder setUserControllable(boolean value)
Output only. Indicates whether the user has some control over that maintenance, either proactively before maintenance was scheduled with maintenance policy or with reactive controls after it was scheduled (see controls field)
bool user_controllable = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
boolean The userControllable to set. |
Returns | |
---|---|
Type | Description |
ResourceMaintenance.Builder |
This builder for chaining. |