public static final class SignalFilter.Builder extends GeneratedMessage.Builder<SignalFilter.Builder> implements SignalFilterOrBuilderA 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SignalFilter.BuilderImplements
SignalFilterOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SignalFilter.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SignalFilter.Builder |
|
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 |
SignalStatusThe 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 |
intThe 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 |
SignalTypeThe 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 |
intThe enum numeric value on the wire for signalType to set. |
| Returns | |
|---|---|
| Type | Description |
SignalFilter.Builder |
This builder for chaining. |