Class SignalTypeGroup (0.6.0)

public final class SignalTypeGroup extends GeneratedMessage implements SignalTypeGroupOrBuilder

A group of signal types that specifies what the user is interested in.

Used by QueryDatabaseResourceGroups API.

Example:

signal_type_group { name = "AVAILABILITY" types = [SIGNAL_TYPE_NO_PROMOTABLE_REPLICA] }

Protobuf type google.cloud.databasecenter.v1beta.SignalTypeGroup

Static Fields

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

SIGNAL_TYPES_FIELD_NUMBER

public static final int SIGNAL_TYPES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SignalTypeGroup getDefaultInstance()
Returns
Type Description
SignalTypeGroup

getDescriptor()

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

newBuilder()

public static SignalTypeGroup.Builder newBuilder()
Returns
Type Description
SignalTypeGroup.Builder

newBuilder(SignalTypeGroup prototype)

public static SignalTypeGroup.Builder newBuilder(SignalTypeGroup prototype)
Parameter
Name Description
prototype SignalTypeGroup
Returns
Type Description
SignalTypeGroup.Builder

parseDelimitedFrom(InputStream input)

public static SignalTypeGroup parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SignalTypeGroup
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SignalTypeGroup parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SignalTypeGroup
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SignalTypeGroup parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SignalTypeGroup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SignalTypeGroup parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SignalTypeGroup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SignalTypeGroup parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SignalTypeGroup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SignalTypeGroup parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SignalTypeGroup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SignalTypeGroup parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SignalTypeGroup
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SignalTypeGroup parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SignalTypeGroup
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SignalTypeGroup parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SignalTypeGroup
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SignalTypeGroup parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SignalTypeGroup
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SignalTypeGroup parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SignalTypeGroup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SignalTypeGroup parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SignalTypeGroup
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SignalTypeGroup> parser()
Returns
Type Description
Parser<SignalTypeGroup>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public SignalTypeGroup getDefaultInstanceForType()
Returns
Type Description
SignalTypeGroup

getDisplayName()

public String getDisplayName()

Required. The display name of a signal group.

string display_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The display name of a signal group.

string display_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for displayName.

getParserForType()

public Parser<SignalTypeGroup> getParserForType()
Returns
Type Description
Parser<SignalTypeGroup>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSignalTypes(int index)

public SignalType getSignalTypes(int index)

Optional. List of signal types present in the group.

repeated .google.cloud.databasecenter.v1beta.SignalType signal_types = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
SignalType

The signalTypes at the given index.

getSignalTypesCount()

public int getSignalTypesCount()

Optional. List of signal types present in the group.

repeated .google.cloud.databasecenter.v1beta.SignalType signal_types = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of signalTypes.

getSignalTypesList()

public List<SignalType> getSignalTypesList()

Optional. List of signal types present in the group.

repeated .google.cloud.databasecenter.v1beta.SignalType signal_types = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<SignalType>

A list containing the signalTypes.

getSignalTypesValue(int index)

public int getSignalTypesValue(int index)

Optional. List of signal types present in the group.

repeated .google.cloud.databasecenter.v1beta.SignalType signal_types = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of signalTypes at the given index.

getSignalTypesValueList()

public List<Integer> getSignalTypesValueList()

Optional. List of signal types present in the group.

repeated .google.cloud.databasecenter.v1beta.SignalType signal_types = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for signalTypes.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SignalTypeGroup.Builder newBuilderForType()
Returns
Type Description
SignalTypeGroup.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected SignalTypeGroup.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SignalTypeGroup.Builder
Overrides

toBuilder()

public SignalTypeGroup.Builder toBuilder()
Returns
Type Description
SignalTypeGroup.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException