- 2.55.0 (latest)
- 2.54.0
- 2.53.0
- 2.52.0
- 2.51.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.6
- 2.2.1
- 2.1.11
public static final class MaintenancePolicy.Builder extends GeneratedMessageV3.Builder<MaintenancePolicy.Builder> implements MaintenancePolicyOrBuilder
Maintenance policy per instance.
Protobuf type google.cloud.memcache.v1.MaintenancePolicy
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > MaintenancePolicy.BuilderImplements
MaintenancePolicyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllWeeklyMaintenanceWindow(Iterable<? extends WeeklyMaintenanceWindow> values)
public MaintenancePolicy.Builder addAllWeeklyMaintenanceWindow(Iterable<? extends WeeklyMaintenanceWindow> values)
Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one.
repeated .google.cloud.memcache.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
values | Iterable<? extends com.google.cloud.memcache.v1.WeeklyMaintenanceWindow> |
Type | Description |
MaintenancePolicy.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MaintenancePolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
MaintenancePolicy.Builder |
addWeeklyMaintenanceWindow(WeeklyMaintenanceWindow value)
public MaintenancePolicy.Builder addWeeklyMaintenanceWindow(WeeklyMaintenanceWindow value)
Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one.
repeated .google.cloud.memcache.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | WeeklyMaintenanceWindow |
Type | Description |
MaintenancePolicy.Builder |
addWeeklyMaintenanceWindow(WeeklyMaintenanceWindow.Builder builderForValue)
public MaintenancePolicy.Builder addWeeklyMaintenanceWindow(WeeklyMaintenanceWindow.Builder builderForValue)
Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one.
repeated .google.cloud.memcache.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
builderForValue | WeeklyMaintenanceWindow.Builder |
Type | Description |
MaintenancePolicy.Builder |
addWeeklyMaintenanceWindow(int index, WeeklyMaintenanceWindow value)
public MaintenancePolicy.Builder addWeeklyMaintenanceWindow(int index, WeeklyMaintenanceWindow value)
Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one.
repeated .google.cloud.memcache.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
index | int |
value | WeeklyMaintenanceWindow |
Type | Description |
MaintenancePolicy.Builder |
addWeeklyMaintenanceWindow(int index, WeeklyMaintenanceWindow.Builder builderForValue)
public MaintenancePolicy.Builder addWeeklyMaintenanceWindow(int index, WeeklyMaintenanceWindow.Builder builderForValue)
Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one.
repeated .google.cloud.memcache.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
index | int |
builderForValue | WeeklyMaintenanceWindow.Builder |
Type | Description |
MaintenancePolicy.Builder |
addWeeklyMaintenanceWindowBuilder()
public WeeklyMaintenanceWindow.Builder addWeeklyMaintenanceWindowBuilder()
Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one.
repeated .google.cloud.memcache.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
WeeklyMaintenanceWindow.Builder |
addWeeklyMaintenanceWindowBuilder(int index)
public WeeklyMaintenanceWindow.Builder addWeeklyMaintenanceWindowBuilder(int index)
Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one.
repeated .google.cloud.memcache.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
index | int |
Type | Description |
WeeklyMaintenanceWindow.Builder |
build()
public MaintenancePolicy build()
Type | Description |
MaintenancePolicy |
buildPartial()
public MaintenancePolicy buildPartial()
Type | Description |
MaintenancePolicy |
clear()
public MaintenancePolicy.Builder clear()
Type | Description |
MaintenancePolicy.Builder |
clearCreateTime()
public MaintenancePolicy.Builder clearCreateTime()
Output only. The time when the policy was created.
.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
MaintenancePolicy.Builder |
clearDescription()
public MaintenancePolicy.Builder clearDescription()
Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.
string description = 3;
Type | Description |
MaintenancePolicy.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public MaintenancePolicy.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
MaintenancePolicy.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public MaintenancePolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
MaintenancePolicy.Builder |
clearUpdateTime()
public MaintenancePolicy.Builder clearUpdateTime()
Output only. The time when the policy was updated.
.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
MaintenancePolicy.Builder |
clearWeeklyMaintenanceWindow()
public MaintenancePolicy.Builder clearWeeklyMaintenanceWindow()
Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one.
repeated .google.cloud.memcache.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
MaintenancePolicy.Builder |
clone()
public MaintenancePolicy.Builder clone()
Type | Description |
MaintenancePolicy.Builder |
getCreateTime()
public Timestamp getCreateTime()
Output only. The time when the policy was created.
.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. The time when the policy was created.
.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time when the policy was created.
.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public MaintenancePolicy getDefaultInstanceForType()
Type | Description |
MaintenancePolicy |
getDescription()
public String getDescription()
Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.
string description = 3;
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.
string description = 3;
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getUpdateTime()
public Timestamp getUpdateTime()
Output only. The time when the policy was updated.
.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
Output only. The time when the policy was updated.
.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The time when the policy was updated.
.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
getWeeklyMaintenanceWindow(int index)
public WeeklyMaintenanceWindow getWeeklyMaintenanceWindow(int index)
Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one.
repeated .google.cloud.memcache.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
index | int |
Type | Description |
WeeklyMaintenanceWindow |
getWeeklyMaintenanceWindowBuilder(int index)
public WeeklyMaintenanceWindow.Builder getWeeklyMaintenanceWindowBuilder(int index)
Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one.
repeated .google.cloud.memcache.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
index | int |
Type | Description |
WeeklyMaintenanceWindow.Builder |
getWeeklyMaintenanceWindowBuilderList()
public List<WeeklyMaintenanceWindow.Builder> getWeeklyMaintenanceWindowBuilderList()
Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one.
repeated .google.cloud.memcache.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
List<Builder> |
getWeeklyMaintenanceWindowCount()
public int getWeeklyMaintenanceWindowCount()
Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one.
repeated .google.cloud.memcache.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
int |
getWeeklyMaintenanceWindowList()
public List<WeeklyMaintenanceWindow> getWeeklyMaintenanceWindowList()
Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one.
repeated .google.cloud.memcache.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
List<WeeklyMaintenanceWindow> |
getWeeklyMaintenanceWindowOrBuilder(int index)
public WeeklyMaintenanceWindowOrBuilder getWeeklyMaintenanceWindowOrBuilder(int index)
Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one.
repeated .google.cloud.memcache.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
index | int |
Type | Description |
WeeklyMaintenanceWindowOrBuilder |
getWeeklyMaintenanceWindowOrBuilderList()
public List<? extends WeeklyMaintenanceWindowOrBuilder> getWeeklyMaintenanceWindowOrBuilderList()
Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one.
repeated .google.cloud.memcache.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
List<? extends com.google.cloud.memcache.v1.WeeklyMaintenanceWindowOrBuilder> |
hasCreateTime()
public boolean hasCreateTime()
Output only. The time when the policy was created.
.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the createTime field is set. |
hasUpdateTime()
public boolean hasUpdateTime()
Output only. The time when the policy was updated.
.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
public MaintenancePolicy.Builder mergeCreateTime(Timestamp value)
Output only. The time when the policy was created.
.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
MaintenancePolicy.Builder |
mergeFrom(MaintenancePolicy other)
public MaintenancePolicy.Builder mergeFrom(MaintenancePolicy other)
Name | Description |
other | MaintenancePolicy |
Type | Description |
MaintenancePolicy.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MaintenancePolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MaintenancePolicy.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public MaintenancePolicy.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
MaintenancePolicy.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MaintenancePolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
MaintenancePolicy.Builder |
mergeUpdateTime(Timestamp value)
public MaintenancePolicy.Builder mergeUpdateTime(Timestamp value)
Output only. The time when the policy was updated.
.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
MaintenancePolicy.Builder |
removeWeeklyMaintenanceWindow(int index)
public MaintenancePolicy.Builder removeWeeklyMaintenanceWindow(int index)
Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one.
repeated .google.cloud.memcache.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
index | int |
Type | Description |
MaintenancePolicy.Builder |
setCreateTime(Timestamp value)
public MaintenancePolicy.Builder setCreateTime(Timestamp value)
Output only. The time when the policy was created.
.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
MaintenancePolicy.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public MaintenancePolicy.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. The time when the policy was created.
.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
MaintenancePolicy.Builder |
setDescription(String value)
public MaintenancePolicy.Builder setDescription(String value)
Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.
string description = 3;
Name | Description |
value | String The description to set. |
Type | Description |
MaintenancePolicy.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public MaintenancePolicy.Builder setDescriptionBytes(ByteString value)
Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.
string description = 3;
Name | Description |
value | ByteString The bytes for description to set. |
Type | Description |
MaintenancePolicy.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public MaintenancePolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
MaintenancePolicy.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MaintenancePolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
MaintenancePolicy.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final MaintenancePolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
MaintenancePolicy.Builder |
setUpdateTime(Timestamp value)
public MaintenancePolicy.Builder setUpdateTime(Timestamp value)
Output only. The time when the policy was updated.
.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
MaintenancePolicy.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
public MaintenancePolicy.Builder setUpdateTime(Timestamp.Builder builderForValue)
Output only. The time when the policy was updated.
.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
MaintenancePolicy.Builder |
setWeeklyMaintenanceWindow(int index, WeeklyMaintenanceWindow value)
public MaintenancePolicy.Builder setWeeklyMaintenanceWindow(int index, WeeklyMaintenanceWindow value)
Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one.
repeated .google.cloud.memcache.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
index | int |
value | WeeklyMaintenanceWindow |
Type | Description |
MaintenancePolicy.Builder |
setWeeklyMaintenanceWindow(int index, WeeklyMaintenanceWindow.Builder builderForValue)
public MaintenancePolicy.Builder setWeeklyMaintenanceWindow(int index, WeeklyMaintenanceWindow.Builder builderForValue)
Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one.
repeated .google.cloud.memcache.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
index | int |
builderForValue | WeeklyMaintenanceWindow.Builder |
Type | Description |
MaintenancePolicy.Builder |