public static final class MaintenanceWindow.Builder extends GeneratedMessage.Builder<MaintenanceWindow.Builder> implements MaintenanceWindowOrBuilderMaintenance window. This specifies when a Cloud SQL instance is restarted for system maintenance purposes.
Protobuf type google.cloud.sql.v1.MaintenanceWindow
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > MaintenanceWindow.BuilderImplements
MaintenanceWindowOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public MaintenanceWindow build()| Returns | |
|---|---|
| Type | Description |
MaintenanceWindow |
|
buildPartial()
public MaintenanceWindow buildPartial()| Returns | |
|---|---|
| Type | Description |
MaintenanceWindow |
|
clear()
public MaintenanceWindow.Builder clear()| Returns | |
|---|---|
| Type | Description |
MaintenanceWindow.Builder |
|
clearDay()
public MaintenanceWindow.Builder clearDay() Day of week - MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY,
SATURDAY, or SUNDAY. Specify in the UTC time zone.
Returned in output as an integer, 1 to 7, where 1 equals Monday.
.google.protobuf.Int32Value day = 2;
| Returns | |
|---|---|
| Type | Description |
MaintenanceWindow.Builder |
|
clearHour()
public MaintenanceWindow.Builder clearHour()Hour of day - 0 to 23. Specify in the UTC time zone.
.google.protobuf.Int32Value hour = 1;
| Returns | |
|---|---|
| Type | Description |
MaintenanceWindow.Builder |
|
clearKind()
public MaintenanceWindow.Builder clearKind() This is always sql#maintenanceWindow.
string kind = 4;
| Returns | |
|---|---|
| Type | Description |
MaintenanceWindow.Builder |
This builder for chaining. |
clearUpdateTrack()
public MaintenanceWindow.Builder clearUpdateTrack() Maintenance timing settings: canary, stable, or week5.
For more information, see About maintenance on Cloud SQL
instances.
.google.cloud.sql.v1.SqlUpdateTrack update_track = 3;
| Returns | |
|---|---|
| Type | Description |
MaintenanceWindow.Builder |
This builder for chaining. |
getDay()
public Int32Value getDay() Day of week - MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY,
SATURDAY, or SUNDAY. Specify in the UTC time zone.
Returned in output as an integer, 1 to 7, where 1 equals Monday.
.google.protobuf.Int32Value day = 2;
| Returns | |
|---|---|
| Type | Description |
Int32Value |
The day. |
getDayBuilder()
public Int32Value.Builder getDayBuilder() Day of week - MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY,
SATURDAY, or SUNDAY. Specify in the UTC time zone.
Returned in output as an integer, 1 to 7, where 1 equals Monday.
.google.protobuf.Int32Value day = 2;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getDayOrBuilder()
public Int32ValueOrBuilder getDayOrBuilder() Day of week - MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY,
SATURDAY, or SUNDAY. Specify in the UTC time zone.
Returned in output as an integer, 1 to 7, where 1 equals Monday.
.google.protobuf.Int32Value day = 2;
| Returns | |
|---|---|
| Type | Description |
Int32ValueOrBuilder |
|
getDefaultInstanceForType()
public MaintenanceWindow getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
MaintenanceWindow |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getHour()
public Int32Value getHour()Hour of day - 0 to 23. Specify in the UTC time zone.
.google.protobuf.Int32Value hour = 1;
| Returns | |
|---|---|
| Type | Description |
Int32Value |
The hour. |
getHourBuilder()
public Int32Value.Builder getHourBuilder()Hour of day - 0 to 23. Specify in the UTC time zone.
.google.protobuf.Int32Value hour = 1;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getHourOrBuilder()
public Int32ValueOrBuilder getHourOrBuilder()Hour of day - 0 to 23. Specify in the UTC time zone.
.google.protobuf.Int32Value hour = 1;
| Returns | |
|---|---|
| Type | Description |
Int32ValueOrBuilder |
|
getKind()
public String getKind() This is always sql#maintenanceWindow.
string kind = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The kind. |
getKindBytes()
public ByteString getKindBytes() This is always sql#maintenanceWindow.
string kind = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for kind. |
getUpdateTrack()
public SqlUpdateTrack getUpdateTrack() Maintenance timing settings: canary, stable, or week5.
For more information, see About maintenance on Cloud SQL
instances.
.google.cloud.sql.v1.SqlUpdateTrack update_track = 3;
| Returns | |
|---|---|
| Type | Description |
SqlUpdateTrack |
The updateTrack. |
getUpdateTrackValue()
public int getUpdateTrackValue() Maintenance timing settings: canary, stable, or week5.
For more information, see About maintenance on Cloud SQL
instances.
.google.cloud.sql.v1.SqlUpdateTrack update_track = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for updateTrack. |
hasDay()
public boolean hasDay() Day of week - MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY,
SATURDAY, or SUNDAY. Specify in the UTC time zone.
Returned in output as an integer, 1 to 7, where 1 equals Monday.
.google.protobuf.Int32Value day = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the day field is set. |
hasHour()
public boolean hasHour()Hour of day - 0 to 23. Specify in the UTC time zone.
.google.protobuf.Int32Value hour = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the hour field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeDay(Int32Value value)
public MaintenanceWindow.Builder mergeDay(Int32Value value) Day of week - MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY,
SATURDAY, or SUNDAY. Specify in the UTC time zone.
Returned in output as an integer, 1 to 7, where 1 equals Monday.
.google.protobuf.Int32Value day = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Int32Value |
| Returns | |
|---|---|
| Type | Description |
MaintenanceWindow.Builder |
|
mergeFrom(MaintenanceWindow other)
public MaintenanceWindow.Builder mergeFrom(MaintenanceWindow other)| Parameter | |
|---|---|
| Name | Description |
other |
MaintenanceWindow |
| Returns | |
|---|---|
| Type | Description |
MaintenanceWindow.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MaintenanceWindow.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
MaintenanceWindow.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public MaintenanceWindow.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
MaintenanceWindow.Builder |
|
mergeHour(Int32Value value)
public MaintenanceWindow.Builder mergeHour(Int32Value value)Hour of day - 0 to 23. Specify in the UTC time zone.
.google.protobuf.Int32Value hour = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Int32Value |
| Returns | |
|---|---|
| Type | Description |
MaintenanceWindow.Builder |
|
setDay(Int32Value value)
public MaintenanceWindow.Builder setDay(Int32Value value) Day of week - MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY,
SATURDAY, or SUNDAY. Specify in the UTC time zone.
Returned in output as an integer, 1 to 7, where 1 equals Monday.
.google.protobuf.Int32Value day = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Int32Value |
| Returns | |
|---|---|
| Type | Description |
MaintenanceWindow.Builder |
|
setDay(Int32Value.Builder builderForValue)
public MaintenanceWindow.Builder setDay(Int32Value.Builder builderForValue) Day of week - MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY,
SATURDAY, or SUNDAY. Specify in the UTC time zone.
Returned in output as an integer, 1 to 7, where 1 equals Monday.
.google.protobuf.Int32Value day = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
MaintenanceWindow.Builder |
|
setHour(Int32Value value)
public MaintenanceWindow.Builder setHour(Int32Value value)Hour of day - 0 to 23. Specify in the UTC time zone.
.google.protobuf.Int32Value hour = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Int32Value |
| Returns | |
|---|---|
| Type | Description |
MaintenanceWindow.Builder |
|
setHour(Int32Value.Builder builderForValue)
public MaintenanceWindow.Builder setHour(Int32Value.Builder builderForValue)Hour of day - 0 to 23. Specify in the UTC time zone.
.google.protobuf.Int32Value hour = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
MaintenanceWindow.Builder |
|
setKind(String value)
public MaintenanceWindow.Builder setKind(String value) This is always sql#maintenanceWindow.
string kind = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe kind to set. |
| Returns | |
|---|---|
| Type | Description |
MaintenanceWindow.Builder |
This builder for chaining. |
setKindBytes(ByteString value)
public MaintenanceWindow.Builder setKindBytes(ByteString value) This is always sql#maintenanceWindow.
string kind = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for kind to set. |
| Returns | |
|---|---|
| Type | Description |
MaintenanceWindow.Builder |
This builder for chaining. |
setUpdateTrack(SqlUpdateTrack value)
public MaintenanceWindow.Builder setUpdateTrack(SqlUpdateTrack value) Maintenance timing settings: canary, stable, or week5.
For more information, see About maintenance on Cloud SQL
instances.
.google.cloud.sql.v1.SqlUpdateTrack update_track = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
SqlUpdateTrackThe updateTrack to set. |
| Returns | |
|---|---|
| Type | Description |
MaintenanceWindow.Builder |
This builder for chaining. |
setUpdateTrackValue(int value)
public MaintenanceWindow.Builder setUpdateTrackValue(int value) Maintenance timing settings: canary, stable, or week5.
For more information, see About maintenance on Cloud SQL
instances.
.google.cloud.sql.v1.SqlUpdateTrack update_track = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for updateTrack to set. |
| Returns | |
|---|---|
| Type | Description |
MaintenanceWindow.Builder |
This builder for chaining. |