Class NodePattern (0.3.0)

public final class NodePattern extends GeneratedMessage implements NodePatternOrBuilder

Node pattern matcher to match the node id, labels and properties.

Protobuf type google.cloud.apptopology.v1.NodePattern

Static Fields

ALIAS_FIELD_NUMBER

public static final int ALIAS_FIELD_NUMBER
Field Value
Type Description
int

LABEL_PROPERTIES_PATTERN_FIELD_NUMBER

public static final int LABEL_PROPERTIES_PATTERN_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static NodePattern getDefaultInstance()
Returns
Type Description
NodePattern

getDescriptor()

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

newBuilder()

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

newBuilder(NodePattern prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAlias()

public String getAlias()

Optional. Represents an identifier to be referenced in property_matcher_expr. For example, an alias for app can be referenced as app.Base/location="us-central1". alias must be unique within the query, otherwise an error will be returned.

string alias = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The alias.

getAliasBytes()

public ByteString getAliasBytes()

Optional. Represents an identifier to be referenced in property_matcher_expr. For example, an alias for app can be referenced as app.Base/location="us-central1". alias must be unique within the query, otherwise an error will be returned.

string alias = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for alias.

getDefaultInstanceForType()

public NodePattern getDefaultInstanceForType()
Returns
Type Description
NodePattern

getLabelPropertiesPattern()

public LabelPropertiesPattern getLabelPropertiesPattern()

Optional. Matcher for labels/properties.

.google.cloud.apptopology.v1.LabelPropertiesPattern label_properties_pattern = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LabelPropertiesPattern

The labelPropertiesPattern.

getLabelPropertiesPatternOrBuilder()

public LabelPropertiesPatternOrBuilder getLabelPropertiesPatternOrBuilder()

Optional. Matcher for labels/properties.

.google.cloud.apptopology.v1.LabelPropertiesPattern label_properties_pattern = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LabelPropertiesPatternOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasLabelPropertiesPattern()

public boolean hasLabelPropertiesPattern()

Optional. Matcher for labels/properties.

.google.cloud.apptopology.v1.LabelPropertiesPattern label_properties_pattern = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the labelPropertiesPattern field is set.

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 NodePattern.Builder newBuilderForType()
Returns
Type Description
NodePattern.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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