Class MaintenanceExclusionWindow.Builder (0.52.0)

public static final class MaintenanceExclusionWindow.Builder extends GeneratedMessageV3.Builder<MaintenanceExclusionWindow.Builder> implements MaintenanceExclusionWindowOrBuilder

Represents a maintenance exclusion window.

Protobuf type google.cloud.edgecontainer.v1.MaintenanceExclusionWindow

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MaintenanceExclusionWindow.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MaintenanceExclusionWindow.Builder
Overrides

build()

public MaintenanceExclusionWindow build()
Returns
Type Description
MaintenanceExclusionWindow

buildPartial()

public MaintenanceExclusionWindow buildPartial()
Returns
Type Description
MaintenanceExclusionWindow

clear()

public MaintenanceExclusionWindow.Builder clear()
Returns
Type Description
MaintenanceExclusionWindow.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public MaintenanceExclusionWindow.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MaintenanceExclusionWindow.Builder
Overrides

clearId()

public MaintenanceExclusionWindow.Builder clearId()

Optional. A unique (per cluster) id for the window.

string id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MaintenanceExclusionWindow.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public MaintenanceExclusionWindow.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
MaintenanceExclusionWindow.Builder
Overrides

clearWindow()

public MaintenanceExclusionWindow.Builder clearWindow()

Optional. The time window.

.google.cloud.edgecontainer.v1.TimeWindow window = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MaintenanceExclusionWindow.Builder

clone()

public MaintenanceExclusionWindow.Builder clone()
Returns
Type Description
MaintenanceExclusionWindow.Builder
Overrides

getDefaultInstanceForType()

public MaintenanceExclusionWindow getDefaultInstanceForType()
Returns
Type Description
MaintenanceExclusionWindow

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getId()

public String getId()

Optional. A unique (per cluster) id for the window.

string id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Optional. A unique (per cluster) id for the window.

string id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for id.

getWindow()

public TimeWindow getWindow()

Optional. The time window.

.google.cloud.edgecontainer.v1.TimeWindow window = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimeWindow

The window.

getWindowBuilder()

public TimeWindow.Builder getWindowBuilder()

Optional. The time window.

.google.cloud.edgecontainer.v1.TimeWindow window = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimeWindow.Builder

getWindowOrBuilder()

public TimeWindowOrBuilder getWindowOrBuilder()

Optional. The time window.

.google.cloud.edgecontainer.v1.TimeWindow window = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimeWindowOrBuilder

hasWindow()

public boolean hasWindow()

Optional. The time window.

.google.cloud.edgecontainer.v1.TimeWindow window = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the window field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MaintenanceExclusionWindow other)

public MaintenanceExclusionWindow.Builder mergeFrom(MaintenanceExclusionWindow other)
Parameter
Name Description
other MaintenanceExclusionWindow
Returns
Type Description
MaintenanceExclusionWindow.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MaintenanceExclusionWindow.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MaintenanceExclusionWindow.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MaintenanceExclusionWindow.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MaintenanceExclusionWindow.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MaintenanceExclusionWindow.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MaintenanceExclusionWindow.Builder
Overrides

mergeWindow(TimeWindow value)

public MaintenanceExclusionWindow.Builder mergeWindow(TimeWindow value)

Optional. The time window.

.google.cloud.edgecontainer.v1.TimeWindow window = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TimeWindow
Returns
Type Description
MaintenanceExclusionWindow.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public MaintenanceExclusionWindow.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MaintenanceExclusionWindow.Builder
Overrides

setId(String value)

public MaintenanceExclusionWindow.Builder setId(String value)

Optional. A unique (per cluster) id for the window.

string id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The id to set.

Returns
Type Description
MaintenanceExclusionWindow.Builder

This builder for chaining.

setIdBytes(ByteString value)

public MaintenanceExclusionWindow.Builder setIdBytes(ByteString value)

Optional. A unique (per cluster) id for the window.

string id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
MaintenanceExclusionWindow.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public MaintenanceExclusionWindow.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
MaintenanceExclusionWindow.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final MaintenanceExclusionWindow.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MaintenanceExclusionWindow.Builder
Overrides

setWindow(TimeWindow value)

public MaintenanceExclusionWindow.Builder setWindow(TimeWindow value)

Optional. The time window.

.google.cloud.edgecontainer.v1.TimeWindow window = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TimeWindow
Returns
Type Description
MaintenanceExclusionWindow.Builder

setWindow(TimeWindow.Builder builderForValue)

public MaintenanceExclusionWindow.Builder setWindow(TimeWindow.Builder builderForValue)

Optional. The time window.

.google.cloud.edgecontainer.v1.TimeWindow window = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue TimeWindow.Builder
Returns
Type Description
MaintenanceExclusionWindow.Builder