Class PacketMirroring (1.34.0)

public final class PacketMirroring extends GeneratedMessageV3 implements PacketMirroringOrBuilder

Represents a Packet Mirroring resource. Packet Mirroring clones the traffic of specified instances in your Virtual Private Cloud (VPC) network and forwards it to a collector destination, such as an instance group of an internal TCP/UDP load balancer, for analysis or examination. For more information about setting up Packet Mirroring, see Using Packet Mirroring.

Protobuf type google.cloud.compute.v1.PacketMirroring

Static Fields

COLLECTOR_ILB_FIELD_NUMBER

public static final int COLLECTOR_ILB_FIELD_NUMBER
Field Value
TypeDescription
int

CREATION_TIMESTAMP_FIELD_NUMBER

public static final int CREATION_TIMESTAMP_FIELD_NUMBER
Field Value
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

ENABLE_FIELD_NUMBER

public static final int ENABLE_FIELD_NUMBER
Field Value
TypeDescription
int

FILTER_FIELD_NUMBER

public static final int FILTER_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

KIND_FIELD_NUMBER

public static final int KIND_FIELD_NUMBER
Field Value
TypeDescription
int

MIRRORED_RESOURCES_FIELD_NUMBER

public static final int MIRRORED_RESOURCES_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

NETWORK_FIELD_NUMBER

public static final int NETWORK_FIELD_NUMBER
Field Value
TypeDescription
int

PRIORITY_FIELD_NUMBER

public static final int PRIORITY_FIELD_NUMBER
Field Value
TypeDescription
int

REGION_FIELD_NUMBER

public static final int REGION_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int SELF_LINK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PacketMirroring getDefaultInstance()
Returns
TypeDescription
PacketMirroring

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static PacketMirroring.Builder newBuilder()
Returns
TypeDescription
PacketMirroring.Builder

newBuilder(PacketMirroring prototype)

public static PacketMirroring.Builder newBuilder(PacketMirroring prototype)
Parameter
NameDescription
prototypePacketMirroring
Returns
TypeDescription
PacketMirroring.Builder

parseDelimitedFrom(InputStream input)

public static PacketMirroring parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PacketMirroring
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PacketMirroring parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PacketMirroring
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PacketMirroring parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PacketMirroring
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PacketMirroring parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PacketMirroring
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PacketMirroring parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PacketMirroring
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PacketMirroring parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PacketMirroring
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PacketMirroring parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PacketMirroring
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PacketMirroring parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PacketMirroring
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PacketMirroring parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PacketMirroring
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PacketMirroring parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PacketMirroring
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PacketMirroring parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PacketMirroring
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PacketMirroring parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PacketMirroring
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<PacketMirroring> parser()
Returns
TypeDescription
Parser<PacketMirroring>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCollectorIlb()

public PacketMirroringForwardingRuleInfo getCollectorIlb()

The Forwarding Rule resource of type loadBalancingScheme=INTERNAL that will be used as collector for mirrored traffic. The specified forwarding rule must have isMirroringCollector set to true.

optional .google.cloud.compute.v1.PacketMirroringForwardingRuleInfo collector_ilb = 426607853;

Returns
TypeDescription
PacketMirroringForwardingRuleInfo

The collectorIlb.

getCollectorIlbOrBuilder()

public PacketMirroringForwardingRuleInfoOrBuilder getCollectorIlbOrBuilder()

The Forwarding Rule resource of type loadBalancingScheme=INTERNAL that will be used as collector for mirrored traffic. The specified forwarding rule must have isMirroringCollector set to true.

optional .google.cloud.compute.v1.PacketMirroringForwardingRuleInfo collector_ilb = 426607853;

Returns
TypeDescription
PacketMirroringForwardingRuleInfoOrBuilder

getCreationTimestamp()

public String getCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
String

The creationTimestamp.

getCreationTimestampBytes()

public ByteString getCreationTimestampBytes()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
ByteString

The bytes for creationTimestamp.

getDefaultInstanceForType()

public PacketMirroring getDefaultInstanceForType()
Returns
TypeDescription
PacketMirroring

getDescription()

public String getDescription()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
TypeDescription
ByteString

The bytes for description.

getEnable()

public String getEnable()

Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet mirroring policy will not be enforced on the network. The default is TRUE. Check the Enable enum for the list of possible values.

optional string enable = 311764355;

Returns
TypeDescription
String

The enable.

getEnableBytes()

public ByteString getEnableBytes()

Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet mirroring policy will not be enforced on the network. The default is TRUE. Check the Enable enum for the list of possible values.

optional string enable = 311764355;

Returns
TypeDescription
ByteString

The bytes for enable.

getFilter()

public PacketMirroringFilter getFilter()

Filter for mirrored traffic. If unspecified, all traffic is mirrored.

optional .google.cloud.compute.v1.PacketMirroringFilter filter = 336120696;

Returns
TypeDescription
PacketMirroringFilter

The filter.

getFilterOrBuilder()

public PacketMirroringFilterOrBuilder getFilterOrBuilder()

Filter for mirrored traffic. If unspecified, all traffic is mirrored.

optional .google.cloud.compute.v1.PacketMirroringFilter filter = 336120696;

Returns
TypeDescription
PacketMirroringFilterOrBuilder

getId()

public long getId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
TypeDescription
long

The id.

getKind()

public String getKind()

[Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings.

optional string kind = 3292052;

Returns
TypeDescription
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings.

optional string kind = 3292052;

Returns
TypeDescription
ByteString

The bytes for kind.

getMirroredResources()

public PacketMirroringMirroredResourceInfo getMirroredResources()

PacketMirroring mirroredResourceInfos. MirroredResourceInfo specifies a set of mirrored VM instances, subnetworks and/or tags for which traffic from/to all VM instances will be mirrored.

optional .google.cloud.compute.v1.PacketMirroringMirroredResourceInfo mirrored_resources = 124817348;

Returns
TypeDescription
PacketMirroringMirroredResourceInfo

The mirroredResources.

getMirroredResourcesOrBuilder()

public PacketMirroringMirroredResourceInfoOrBuilder getMirroredResourcesOrBuilder()

PacketMirroring mirroredResourceInfos. MirroredResourceInfo specifies a set of mirrored VM instances, subnetworks and/or tags for which traffic from/to all VM instances will be mirrored.

optional .google.cloud.compute.v1.PacketMirroringMirroredResourceInfo mirrored_resources = 124817348;

Returns
TypeDescription
PacketMirroringMirroredResourceInfoOrBuilder

getName()

public String getName()

Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
TypeDescription
ByteString

The bytes for name.

getNetwork()

public PacketMirroringNetworkInfo getNetwork()

Specifies the mirrored VPC network. Only packets in this network will be mirrored. All mirrored VMs should have a NIC in the given network. All mirrored subnetworks should belong to the given network.

optional .google.cloud.compute.v1.PacketMirroringNetworkInfo network = 232872494;

Returns
TypeDescription
PacketMirroringNetworkInfo

The network.

getNetworkOrBuilder()

public PacketMirroringNetworkInfoOrBuilder getNetworkOrBuilder()

Specifies the mirrored VPC network. Only packets in this network will be mirrored. All mirrored VMs should have a NIC in the given network. All mirrored subnetworks should belong to the given network.

optional .google.cloud.compute.v1.PacketMirroringNetworkInfo network = 232872494;

Returns
TypeDescription
PacketMirroringNetworkInfoOrBuilder

getParserForType()

public Parser<PacketMirroring> getParserForType()
Returns
TypeDescription
Parser<PacketMirroring>
Overrides

getPriority()

public int getPriority()

The priority of applying this configuration. Priority is used to break ties in cases where there is more than one matching rule. In the case of two rules that apply for a given Instance, the one with the lowest-numbered priority value wins. Default value is 1000. Valid range is 0 through 65535.

optional uint32 priority = 445151652;

Returns
TypeDescription
int

The priority.

getRegion()

public String getRegion()

[Output Only] URI of the region where the packetMirroring resides.

optional string region = 138946292;

Returns
TypeDescription
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

[Output Only] URI of the region where the packetMirroring resides.

optional string region = 138946292;

Returns
TypeDescription
ByteString

The bytes for region.

public String getSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
ByteString

The bytes for selfLink.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasCollectorIlb()

public boolean hasCollectorIlb()

The Forwarding Rule resource of type loadBalancingScheme=INTERNAL that will be used as collector for mirrored traffic. The specified forwarding rule must have isMirroringCollector set to true.

optional .google.cloud.compute.v1.PacketMirroringForwardingRuleInfo collector_ilb = 426607853;

Returns
TypeDescription
boolean

Whether the collectorIlb field is set.

hasCreationTimestamp()

public boolean hasCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
boolean

Whether the creationTimestamp field is set.

hasDescription()

public boolean hasDescription()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
TypeDescription
boolean

Whether the description field is set.

hasEnable()

public boolean hasEnable()

Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet mirroring policy will not be enforced on the network. The default is TRUE. Check the Enable enum for the list of possible values.

optional string enable = 311764355;

Returns
TypeDescription
boolean

Whether the enable field is set.

hasFilter()

public boolean hasFilter()

Filter for mirrored traffic. If unspecified, all traffic is mirrored.

optional .google.cloud.compute.v1.PacketMirroringFilter filter = 336120696;

Returns
TypeDescription
boolean

Whether the filter field is set.

hasId()

public boolean hasId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
TypeDescription
boolean

Whether the id field is set.

hasKind()

public boolean hasKind()

[Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings.

optional string kind = 3292052;

Returns
TypeDescription
boolean

Whether the kind field is set.

hasMirroredResources()

public boolean hasMirroredResources()

PacketMirroring mirroredResourceInfos. MirroredResourceInfo specifies a set of mirrored VM instances, subnetworks and/or tags for which traffic from/to all VM instances will be mirrored.

optional .google.cloud.compute.v1.PacketMirroringMirroredResourceInfo mirrored_resources = 124817348;

Returns
TypeDescription
boolean

Whether the mirroredResources field is set.

hasName()

public boolean hasName()

Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
TypeDescription
boolean

Whether the name field is set.

hasNetwork()

public boolean hasNetwork()

Specifies the mirrored VPC network. Only packets in this network will be mirrored. All mirrored VMs should have a NIC in the given network. All mirrored subnetworks should belong to the given network.

optional .google.cloud.compute.v1.PacketMirroringNetworkInfo network = 232872494;

Returns
TypeDescription
boolean

Whether the network field is set.

hasPriority()

public boolean hasPriority()

The priority of applying this configuration. Priority is used to break ties in cases where there is more than one matching rule. In the case of two rules that apply for a given Instance, the one with the lowest-numbered priority value wins. Default value is 1000. Valid range is 0 through 65535.

optional uint32 priority = 445151652;

Returns
TypeDescription
boolean

Whether the priority field is set.

hasRegion()

public boolean hasRegion()

[Output Only] URI of the region where the packetMirroring resides.

optional string region = 138946292;

Returns
TypeDescription
boolean

Whether the region field is set.

public boolean hasSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
boolean

Whether the selfLink field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public PacketMirroring.Builder newBuilderForType()
Returns
TypeDescription
PacketMirroring.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PacketMirroring.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PacketMirroring.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public PacketMirroring.Builder toBuilder()
Returns
TypeDescription
PacketMirroring.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException