Class SignalFilter.Builder (0.6.0)

public static final class SignalFilter.Builder extends GeneratedMessage.Builder<SignalFilter.Builder> implements SignalFilterOrBuilder

A filter for Signals.

If signal_type is left unset, all signals should be returned. For example, the following filter returns all issues. signal_filter: { signal_status: SIGNAL_STATUS_ISSUE; }

Another example, the following filter returns issues of the given type: signal_filter: { type: SIGNAL_TYPE_NO_PROMOTABLE_REPLICA signal_status: ISSUE }

If signal_status is left unset or set to SIGNAL_STATE_UNSPECIFIED, an error should be returned.

Protobuf type google.cloud.databasecenter.v1beta.SignalFilter

Static Methods

getDescriptor()

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

Methods

build()

public SignalFilter build()
Returns
Type Description
SignalFilter

buildPartial()

public SignalFilter buildPartial()
Returns
Type Description
SignalFilter

clear()

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

clearSignalStatus()

public SignalFilter.Builder clearSignalStatus()

Optional. Represents the status of the Signal for which the filter is for.

.google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SignalFilter.Builder

This builder for chaining.

clearSignalType()

public SignalFilter.Builder clearSignalType()

Optional. Represents the type of the Signal for which the filter is for.

.google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SignalFilter.Builder

This builder for chaining.

getDefaultInstanceForType()

public SignalFilter getDefaultInstanceForType()
Returns
Type Description
SignalFilter

getDescriptorForType()

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

getSignalStatus()

public SignalStatus getSignalStatus()

Optional. Represents the status of the Signal for which the filter is for.

.google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SignalStatus

The signalStatus.

getSignalStatusValue()

public int getSignalStatusValue()

Optional. Represents the status of the Signal for which the filter is for.

.google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for signalStatus.

getSignalType()

public SignalType getSignalType()

Optional. Represents the type of the Signal for which the filter is for.

.google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SignalType

The signalType.

getSignalTypeValue()

public int getSignalTypeValue()

Optional. Represents the type of the Signal for which the filter is for.

.google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for signalType.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SignalFilter other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setSignalStatus(SignalStatus value)

public SignalFilter.Builder setSignalStatus(SignalStatus value)

Optional. Represents the status of the Signal for which the filter is for.

.google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SignalStatus

The signalStatus to set.

Returns
Type Description
SignalFilter.Builder

This builder for chaining.

setSignalStatusValue(int value)

public SignalFilter.Builder setSignalStatusValue(int value)

Optional. Represents the status of the Signal for which the filter is for.

.google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for signalStatus to set.

Returns
Type Description
SignalFilter.Builder

This builder for chaining.

setSignalType(SignalType value)

public SignalFilter.Builder setSignalType(SignalType value)

Optional. Represents the type of the Signal for which the filter is for.

.google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SignalType

The signalType to set.

Returns
Type Description
SignalFilter.Builder

This builder for chaining.

setSignalTypeValue(int value)

public SignalFilter.Builder setSignalTypeValue(int value)

Optional. Represents the type of the Signal for which the filter is for.

.google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for signalType to set.

Returns
Type Description
SignalFilter.Builder

This builder for chaining.