Interface ResourceMaintenanceOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ResourceMaintenance,ResourceMaintenance.Builder
@Generated
public interface ResourceMaintenanceOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanOptional.booleancontainsLabels(String key) Optional.Deprecated.intOptional.Optional.getAnnotationsOrDefault(String key, String defaultValue) Optional.Optional.getControls(int index) Output only.intOutput only.Output only.getControlsOrBuilder(int index) Output only.List<? extends MaintenanceControlOrBuilder>Output only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getEtag()Output only.com.google.protobuf.ByteStringOutput only.Deprecated.intOptional.Optional.getLabelsOrDefault(String key, String defaultValue) Optional.getLabelsOrThrow(String key) Optional.Output only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Output only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getName()Identifier.com.google.protobuf.ByteStringIdentifier.Output only.Output only.getState()Output only.intOutput only.getUid()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
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:
- The name.
-
getNameBytes
com.google.protobuf.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:
- The bytes for name.
-
hasResource
boolean hasResource()Output only. The resource spec of the resource maintenance.
.google.cloud.maintenance.api.v1.ResourceMaintenance.Resource resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the resource field is set.
-
getResource
ResourceMaintenance.Resource getResource()Output only. The resource spec of the resource maintenance.
.google.cloud.maintenance.api.v1.ResourceMaintenance.Resource resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The resource.
-
getResourceOrBuilder
ResourceMaintenance.ResourceOrBuilder getResourceOrBuilder()Output only. The resource spec of the resource maintenance.
.google.cloud.maintenance.api.v1.ResourceMaintenance.Resource resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
hasMaintenance
boolean hasMaintenance()Output only. The details of the maintenance.
.google.cloud.maintenance.api.v1.ResourceMaintenance.Maintenance maintenance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the maintenance field is set.
-
getMaintenance
ResourceMaintenance.Maintenance getMaintenance()Output only. The details of the maintenance.
.google.cloud.maintenance.api.v1.ResourceMaintenance.Maintenance maintenance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The maintenance.
-
getMaintenanceOrBuilder
ResourceMaintenance.MaintenanceOrBuilder getMaintenanceOrBuilder()Output only. The details of the maintenance.
.google.cloud.maintenance.api.v1.ResourceMaintenance.Maintenance maintenance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getStateValue
int getStateValue()Output only. The state of the resource maintenance.
.google.cloud.maintenance.api.v1.ResourceMaintenance.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The enum numeric value on the wire for state.
-
getState
ResourceMaintenance.State getState()Output only. The state of the resource maintenance.
.google.cloud.maintenance.api.v1.ResourceMaintenance.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The state.
-
hasCreateTime
boolean hasCreateTime()Output only. The create time of the resource maintenance.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the createTime field is set.
-
getCreateTime
com.google.protobuf.Timestamp getCreateTime()Output only. The create time of the resource maintenance.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The createTime.
-
getCreateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The create time of the resource maintenance.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
hasUpdateTime
boolean hasUpdateTime()Output only. The update time of the resource maintenance.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
com.google.protobuf.Timestamp getUpdateTime()Output only. The update time of the resource maintenance.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The update time of the resource maintenance.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
hasMaintenanceStartTime
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:
- Whether the maintenanceStartTime field is set.
-
getMaintenanceStartTime
com.google.protobuf.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:
- The maintenanceStartTime.
-
getMaintenanceStartTimeOrBuilder
com.google.protobuf.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]; -
hasMaintenanceEndTime
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:
- Whether the maintenanceEndTime field is set.
-
getMaintenanceEndTime
com.google.protobuf.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:
- The maintenanceEndTime.
-
getMaintenanceEndTimeOrBuilder
com.google.protobuf.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]; -
hasMaintenanceCancelTime
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:
- Whether the maintenanceCancelTime field is set.
-
getMaintenanceCancelTime
com.google.protobuf.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:
- The maintenanceCancelTime.
-
getMaintenanceCancelTimeOrBuilder
com.google.protobuf.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]; -
hasMaintenanceScheduledStartTime
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:
- Whether the maintenanceScheduledStartTime field is set.
-
getMaintenanceScheduledStartTime
com.google.protobuf.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:
- The maintenanceScheduledStartTime.
-
getMaintenanceScheduledStartTimeOrBuilder
com.google.protobuf.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]; -
hasMaintenanceScheduledEndTime
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:
- Whether the maintenanceScheduledEndTime field is set.
-
getMaintenanceScheduledEndTime
com.google.protobuf.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:
- The maintenanceScheduledEndTime.
-
getMaintenanceScheduledEndTimeOrBuilder
com.google.protobuf.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]; -
getUserControllable
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:
- The userControllable.
-
getControlsList
List<MaintenanceControl> getControlsList()Output only. The controls of the maintenance.
repeated .google.cloud.maintenance.api.v1.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getControls
Output only. The controls of the maintenance.
repeated .google.cloud.maintenance.api.v1.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getControlsCount
int getControlsCount()Output only. The controls of the maintenance.
repeated .google.cloud.maintenance.api.v1.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getControlsOrBuilderList
List<? extends MaintenanceControlOrBuilder> getControlsOrBuilderList()Output only. The controls of the maintenance.
repeated .google.cloud.maintenance.api.v1.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getControlsOrBuilder
Output only. The controls of the maintenance.
repeated .google.cloud.maintenance.api.v1.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getLabelsCount
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]; -
containsLabels
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]; -
getLabels
Deprecated.UsegetLabelsMap()instead. -
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]; -
getLabelsOrDefault
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]; -
getLabelsOrThrow
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]; -
getAnnotationsCount
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]; -
containsAnnotations
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]; -
getAnnotations
Deprecated.UsegetAnnotationsMap()instead. -
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]; -
getAnnotationsOrDefault
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]; -
getAnnotationsOrThrow
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]; -
getUid
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:
- The uid.
-
getUidBytes
com.google.protobuf.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:
- The bytes for uid.
-
getEtag
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:
- The etag.
-
getEtagBytes
com.google.protobuf.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:
- The bytes for etag.
-