Package com.google.cloud.compute.v1
Class PacketMirroring.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PacketMirroring.Builder>
-
- com.google.cloud.compute.v1.PacketMirroring.Builder
-
- All Implemented Interfaces:
PacketMirroringOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- PacketMirroring
public static final class PacketMirroring.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PacketMirroring.Builder> 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 typegoogle.cloud.compute.v1.PacketMirroring
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PacketMirroring.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PacketMirroring
build()
PacketMirroring
buildPartial()
PacketMirroring.Builder
clear()
PacketMirroring.Builder
clearCollectorIlb()
The Forwarding Rule resource of type loadBalancingScheme=INTERNAL that will be used as collector for mirrored traffic.PacketMirroring.Builder
clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.PacketMirroring.Builder
clearDescription()
An optional description of this resource.PacketMirroring.Builder
clearEnable()
Indicates whether or not this packet mirroring takes effect.PacketMirroring.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
PacketMirroring.Builder
clearFilter()
Filter for mirrored traffic.PacketMirroring.Builder
clearId()
[Output Only] The unique identifier for the resource.PacketMirroring.Builder
clearKind()
[Output Only] Type of the resource.PacketMirroring.Builder
clearMirroredResources()
PacketMirroring mirroredResourceInfos.PacketMirroring.Builder
clearName()
Name of the resource; provided by the client when the resource is created.PacketMirroring.Builder
clearNetwork()
Specifies the mirrored VPC network.PacketMirroring.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
PacketMirroring.Builder
clearPriority()
The priority of applying this configuration.PacketMirroring.Builder
clearRegion()
[Output Only] URI of the region where the packetMirroring resides.PacketMirroring.Builder
clearSelfLink()
[Output Only] Server-defined URL for the resource.PacketMirroring.Builder
clone()
PacketMirroringForwardingRuleInfo
getCollectorIlb()
The Forwarding Rule resource of type loadBalancingScheme=INTERNAL that will be used as collector for mirrored traffic.PacketMirroringForwardingRuleInfo.Builder
getCollectorIlbBuilder()
The Forwarding Rule resource of type loadBalancingScheme=INTERNAL that will be used as collector for mirrored traffic.PacketMirroringForwardingRuleInfoOrBuilder
getCollectorIlbOrBuilder()
The Forwarding Rule resource of type loadBalancingScheme=INTERNAL that will be used as collector for mirrored traffic.String
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.com.google.protobuf.ByteString
getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.PacketMirroring
getDefaultInstanceForType()
String
getDescription()
An optional description of this resource.com.google.protobuf.ByteString
getDescriptionBytes()
An optional description of this resource.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getEnable()
Indicates whether or not this packet mirroring takes effect.com.google.protobuf.ByteString
getEnableBytes()
Indicates whether or not this packet mirroring takes effect.PacketMirroringFilter
getFilter()
Filter for mirrored traffic.PacketMirroringFilter.Builder
getFilterBuilder()
Filter for mirrored traffic.PacketMirroringFilterOrBuilder
getFilterOrBuilder()
Filter for mirrored traffic.long
getId()
[Output Only] The unique identifier for the resource.String
getKind()
[Output Only] Type of the resource.com.google.protobuf.ByteString
getKindBytes()
[Output Only] Type of the resource.PacketMirroringMirroredResourceInfo
getMirroredResources()
PacketMirroring mirroredResourceInfos.PacketMirroringMirroredResourceInfo.Builder
getMirroredResourcesBuilder()
PacketMirroring mirroredResourceInfos.PacketMirroringMirroredResourceInfoOrBuilder
getMirroredResourcesOrBuilder()
PacketMirroring mirroredResourceInfos.String
getName()
Name of the resource; provided by the client when the resource is created.com.google.protobuf.ByteString
getNameBytes()
Name of the resource; provided by the client when the resource is created.PacketMirroringNetworkInfo
getNetwork()
Specifies the mirrored VPC network.PacketMirroringNetworkInfo.Builder
getNetworkBuilder()
Specifies the mirrored VPC network.PacketMirroringNetworkInfoOrBuilder
getNetworkOrBuilder()
Specifies the mirrored VPC network.int
getPriority()
The priority of applying this configuration.String
getRegion()
[Output Only] URI of the region where the packetMirroring resides.com.google.protobuf.ByteString
getRegionBytes()
[Output Only] URI of the region where the packetMirroring resides.String
getSelfLink()
[Output Only] Server-defined URL for the resource.com.google.protobuf.ByteString
getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.boolean
hasCollectorIlb()
The Forwarding Rule resource of type loadBalancingScheme=INTERNAL that will be used as collector for mirrored traffic.boolean
hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.boolean
hasDescription()
An optional description of this resource.boolean
hasEnable()
Indicates whether or not this packet mirroring takes effect.boolean
hasFilter()
Filter for mirrored traffic.boolean
hasId()
[Output Only] The unique identifier for the resource.boolean
hasKind()
[Output Only] Type of the resource.boolean
hasMirroredResources()
PacketMirroring mirroredResourceInfos.boolean
hasName()
Name of the resource; provided by the client when the resource is created.boolean
hasNetwork()
Specifies the mirrored VPC network.boolean
hasPriority()
The priority of applying this configuration.boolean
hasRegion()
[Output Only] URI of the region where the packetMirroring resides.boolean
hasSelfLink()
[Output Only] Server-defined URL for the resource.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
PacketMirroring.Builder
mergeCollectorIlb(PacketMirroringForwardingRuleInfo value)
The Forwarding Rule resource of type loadBalancingScheme=INTERNAL that will be used as collector for mirrored traffic.PacketMirroring.Builder
mergeFilter(PacketMirroringFilter value)
Filter for mirrored traffic.PacketMirroring.Builder
mergeFrom(PacketMirroring other)
PacketMirroring.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
PacketMirroring.Builder
mergeFrom(com.google.protobuf.Message other)
PacketMirroring.Builder
mergeMirroredResources(PacketMirroringMirroredResourceInfo value)
PacketMirroring mirroredResourceInfos.PacketMirroring.Builder
mergeNetwork(PacketMirroringNetworkInfo value)
Specifies the mirrored VPC network.PacketMirroring.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
PacketMirroring.Builder
setCollectorIlb(PacketMirroringForwardingRuleInfo value)
The Forwarding Rule resource of type loadBalancingScheme=INTERNAL that will be used as collector for mirrored traffic.PacketMirroring.Builder
setCollectorIlb(PacketMirroringForwardingRuleInfo.Builder builderForValue)
The Forwarding Rule resource of type loadBalancingScheme=INTERNAL that will be used as collector for mirrored traffic.PacketMirroring.Builder
setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.PacketMirroring.Builder
setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.PacketMirroring.Builder
setDescription(String value)
An optional description of this resource.PacketMirroring.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource.PacketMirroring.Builder
setEnable(String value)
Indicates whether or not this packet mirroring takes effect.PacketMirroring.Builder
setEnableBytes(com.google.protobuf.ByteString value)
Indicates whether or not this packet mirroring takes effect.PacketMirroring.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PacketMirroring.Builder
setFilter(PacketMirroringFilter value)
Filter for mirrored traffic.PacketMirroring.Builder
setFilter(PacketMirroringFilter.Builder builderForValue)
Filter for mirrored traffic.PacketMirroring.Builder
setId(long value)
[Output Only] The unique identifier for the resource.PacketMirroring.Builder
setKind(String value)
[Output Only] Type of the resource.PacketMirroring.Builder
setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource.PacketMirroring.Builder
setMirroredResources(PacketMirroringMirroredResourceInfo value)
PacketMirroring mirroredResourceInfos.PacketMirroring.Builder
setMirroredResources(PacketMirroringMirroredResourceInfo.Builder builderForValue)
PacketMirroring mirroredResourceInfos.PacketMirroring.Builder
setName(String value)
Name of the resource; provided by the client when the resource is created.PacketMirroring.Builder
setNameBytes(com.google.protobuf.ByteString value)
Name of the resource; provided by the client when the resource is created.PacketMirroring.Builder
setNetwork(PacketMirroringNetworkInfo value)
Specifies the mirrored VPC network.PacketMirroring.Builder
setNetwork(PacketMirroringNetworkInfo.Builder builderForValue)
Specifies the mirrored VPC network.PacketMirroring.Builder
setPriority(int value)
The priority of applying this configuration.PacketMirroring.Builder
setRegion(String value)
[Output Only] URI of the region where the packetMirroring resides.PacketMirroring.Builder
setRegionBytes(com.google.protobuf.ByteString value)
[Output Only] URI of the region where the packetMirroring resides.PacketMirroring.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
PacketMirroring.Builder
setSelfLink(String value)
[Output Only] Server-defined URL for the resource.PacketMirroring.Builder
setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for the resource.PacketMirroring.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<PacketMirroring.Builder>
-
clear
public PacketMirroring.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<PacketMirroring.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<PacketMirroring.Builder>
-
getDefaultInstanceForType
public PacketMirroring getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public PacketMirroring build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PacketMirroring buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PacketMirroring.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<PacketMirroring.Builder>
-
setField
public PacketMirroring.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PacketMirroring.Builder>
-
clearField
public PacketMirroring.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PacketMirroring.Builder>
-
clearOneof
public PacketMirroring.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<PacketMirroring.Builder>
-
setRepeatedField
public PacketMirroring.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PacketMirroring.Builder>
-
addRepeatedField
public PacketMirroring.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PacketMirroring.Builder>
-
mergeFrom
public PacketMirroring.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PacketMirroring.Builder>
-
mergeFrom
public PacketMirroring.Builder mergeFrom(PacketMirroring other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<PacketMirroring.Builder>
-
mergeFrom
public PacketMirroring.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PacketMirroring.Builder>
- Throws:
IOException
-
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;
- Specified by:
hasCollectorIlb
in interfacePacketMirroringOrBuilder
- Returns:
- Whether the collectorIlb field is set.
-
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;
- Specified by:
getCollectorIlb
in interfacePacketMirroringOrBuilder
- Returns:
- The collectorIlb.
-
setCollectorIlb
public PacketMirroring.Builder setCollectorIlb(PacketMirroringForwardingRuleInfo value)
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;
-
setCollectorIlb
public PacketMirroring.Builder setCollectorIlb(PacketMirroringForwardingRuleInfo.Builder builderForValue)
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;
-
mergeCollectorIlb
public PacketMirroring.Builder mergeCollectorIlb(PacketMirroringForwardingRuleInfo value)
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;
-
clearCollectorIlb
public PacketMirroring.Builder clearCollectorIlb()
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;
-
getCollectorIlbBuilder
public PacketMirroringForwardingRuleInfo.Builder getCollectorIlbBuilder()
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;
-
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;
- Specified by:
getCollectorIlbOrBuilder
in interfacePacketMirroringOrBuilder
-
hasCreationTimestamp
public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
hasCreationTimestamp
in interfacePacketMirroringOrBuilder
- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
public String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
getCreationTimestamp
in interfacePacketMirroringOrBuilder
- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
getCreationTimestampBytes
in interfacePacketMirroringOrBuilder
- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
public PacketMirroring.Builder setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Parameters:
value
- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
public PacketMirroring.Builder clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
public PacketMirroring.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Parameters:
value
- The bytes for creationTimestamp to set.- Returns:
- This builder for chaining.
-
hasDescription
public boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
- Specified by:
hasDescription
in interfacePacketMirroringOrBuilder
- Returns:
- Whether the description field is set.
-
getDescription
public String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
- Specified by:
getDescription
in interfacePacketMirroringOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
- Specified by:
getDescriptionBytes
in interfacePacketMirroringOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public PacketMirroring.Builder setDescription(String value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public PacketMirroring.Builder clearDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
public PacketMirroring.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasEnable
in interfacePacketMirroringOrBuilder
- Returns:
- Whether the enable field is set.
-
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;
- Specified by:
getEnable
in interfacePacketMirroringOrBuilder
- Returns:
- The enable.
-
getEnableBytes
public com.google.protobuf.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;
- Specified by:
getEnableBytes
in interfacePacketMirroringOrBuilder
- Returns:
- The bytes for enable.
-
setEnable
public PacketMirroring.Builder setEnable(String value)
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;
- Parameters:
value
- The enable to set.- Returns:
- This builder for chaining.
-
clearEnable
public PacketMirroring.Builder clearEnable()
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:
- This builder for chaining.
-
setEnableBytes
public PacketMirroring.Builder setEnableBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for enable to set.- Returns:
- This builder for chaining.
-
hasFilter
public boolean hasFilter()
Filter for mirrored traffic. If unspecified, all traffic is mirrored.
optional .google.cloud.compute.v1.PacketMirroringFilter filter = 336120696;
- Specified by:
hasFilter
in interfacePacketMirroringOrBuilder
- Returns:
- Whether the filter field is set.
-
getFilter
public PacketMirroringFilter getFilter()
Filter for mirrored traffic. If unspecified, all traffic is mirrored.
optional .google.cloud.compute.v1.PacketMirroringFilter filter = 336120696;
- Specified by:
getFilter
in interfacePacketMirroringOrBuilder
- Returns:
- The filter.
-
setFilter
public PacketMirroring.Builder setFilter(PacketMirroringFilter value)
Filter for mirrored traffic. If unspecified, all traffic is mirrored.
optional .google.cloud.compute.v1.PacketMirroringFilter filter = 336120696;
-
setFilter
public PacketMirroring.Builder setFilter(PacketMirroringFilter.Builder builderForValue)
Filter for mirrored traffic. If unspecified, all traffic is mirrored.
optional .google.cloud.compute.v1.PacketMirroringFilter filter = 336120696;
-
mergeFilter
public PacketMirroring.Builder mergeFilter(PacketMirroringFilter value)
Filter for mirrored traffic. If unspecified, all traffic is mirrored.
optional .google.cloud.compute.v1.PacketMirroringFilter filter = 336120696;
-
clearFilter
public PacketMirroring.Builder clearFilter()
Filter for mirrored traffic. If unspecified, all traffic is mirrored.
optional .google.cloud.compute.v1.PacketMirroringFilter filter = 336120696;
-
getFilterBuilder
public PacketMirroringFilter.Builder getFilterBuilder()
Filter for mirrored traffic. If unspecified, all traffic is mirrored.
optional .google.cloud.compute.v1.PacketMirroringFilter filter = 336120696;
-
getFilterOrBuilder
public PacketMirroringFilterOrBuilder getFilterOrBuilder()
Filter for mirrored traffic. If unspecified, all traffic is mirrored.
optional .google.cloud.compute.v1.PacketMirroringFilter filter = 336120696;
- Specified by:
getFilterOrBuilder
in interfacePacketMirroringOrBuilder
-
hasId
public boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Specified by:
hasId
in interfacePacketMirroringOrBuilder
- Returns:
- Whether the id field is set.
-
getId
public long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Specified by:
getId
in interfacePacketMirroringOrBuilder
- Returns:
- The id.
-
setId
public PacketMirroring.Builder setId(long value)
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
public PacketMirroring.Builder clearId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()
[Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings.
optional string kind = 3292052;
- Specified by:
hasKind
in interfacePacketMirroringOrBuilder
- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
[Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings.
optional string kind = 3292052;
- Specified by:
getKind
in interfacePacketMirroringOrBuilder
- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings.
optional string kind = 3292052;
- Specified by:
getKindBytes
in interfacePacketMirroringOrBuilder
- Returns:
- The bytes for kind.
-
setKind
public PacketMirroring.Builder setKind(String value)
[Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings.
optional string kind = 3292052;
- Parameters:
value
- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
public PacketMirroring.Builder clearKind()
[Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings.
optional string kind = 3292052;
- Returns:
- This builder for chaining.
-
setKindBytes
public PacketMirroring.Builder setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings.
optional string kind = 3292052;
- Parameters:
value
- The bytes for kind to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasMirroredResources
in interfacePacketMirroringOrBuilder
- Returns:
- Whether the mirroredResources field is set.
-
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;
- Specified by:
getMirroredResources
in interfacePacketMirroringOrBuilder
- Returns:
- The mirroredResources.
-
setMirroredResources
public PacketMirroring.Builder setMirroredResources(PacketMirroringMirroredResourceInfo value)
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;
-
setMirroredResources
public PacketMirroring.Builder setMirroredResources(PacketMirroringMirroredResourceInfo.Builder builderForValue)
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;
-
mergeMirroredResources
public PacketMirroring.Builder mergeMirroredResources(PacketMirroringMirroredResourceInfo value)
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;
-
clearMirroredResources
public PacketMirroring.Builder clearMirroredResources()
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;
-
getMirroredResourcesBuilder
public PacketMirroringMirroredResourceInfo.Builder getMirroredResourcesBuilder()
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;
-
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;
- Specified by:
getMirroredResourcesOrBuilder
in interfacePacketMirroringOrBuilder
-
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]([-a-z0-9]*[a-z0-9])?` 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;
- Specified by:
hasName
in interfacePacketMirroringOrBuilder
- Returns:
- Whether the name field is set.
-
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]([-a-z0-9]*[a-z0-9])?` 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;
- Specified by:
getName
in interfacePacketMirroringOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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]([-a-z0-9]*[a-z0-9])?` 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;
- Specified by:
getNameBytes
in interfacePacketMirroringOrBuilder
- Returns:
- The bytes for name.
-
setName
public PacketMirroring.Builder setName(String value)
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]([-a-z0-9]*[a-z0-9])?` 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;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public PacketMirroring.Builder clearName()
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]([-a-z0-9]*[a-z0-9])?` 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:
- This builder for chaining.
-
setNameBytes
public PacketMirroring.Builder setNameBytes(com.google.protobuf.ByteString value)
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]([-a-z0-9]*[a-z0-9])?` 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;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasNetwork
in interfacePacketMirroringOrBuilder
- Returns:
- Whether the network field is set.
-
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;
- Specified by:
getNetwork
in interfacePacketMirroringOrBuilder
- Returns:
- The network.
-
setNetwork
public PacketMirroring.Builder setNetwork(PacketMirroringNetworkInfo value)
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;
-
setNetwork
public PacketMirroring.Builder setNetwork(PacketMirroringNetworkInfo.Builder builderForValue)
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;
-
mergeNetwork
public PacketMirroring.Builder mergeNetwork(PacketMirroringNetworkInfo value)
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;
-
clearNetwork
public PacketMirroring.Builder clearNetwork()
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;
-
getNetworkBuilder
public PacketMirroringNetworkInfo.Builder getNetworkBuilder()
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;
-
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;
- Specified by:
getNetworkOrBuilder
in interfacePacketMirroringOrBuilder
-
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;
- Specified by:
hasPriority
in interfacePacketMirroringOrBuilder
- Returns:
- Whether the priority field is set.
-
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;
- Specified by:
getPriority
in interfacePacketMirroringOrBuilder
- Returns:
- The priority.
-
setPriority
public PacketMirroring.Builder setPriority(int value)
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;
- Parameters:
value
- The priority to set.- Returns:
- This builder for chaining.
-
clearPriority
public PacketMirroring.Builder clearPriority()
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:
- This builder for chaining.
-
hasRegion
public boolean hasRegion()
[Output Only] URI of the region where the packetMirroring resides.
optional string region = 138946292;
- Specified by:
hasRegion
in interfacePacketMirroringOrBuilder
- Returns:
- Whether the region field is set.
-
getRegion
public String getRegion()
[Output Only] URI of the region where the packetMirroring resides.
optional string region = 138946292;
- Specified by:
getRegion
in interfacePacketMirroringOrBuilder
- Returns:
- The region.
-
getRegionBytes
public com.google.protobuf.ByteString getRegionBytes()
[Output Only] URI of the region where the packetMirroring resides.
optional string region = 138946292;
- Specified by:
getRegionBytes
in interfacePacketMirroringOrBuilder
- Returns:
- The bytes for region.
-
setRegion
public PacketMirroring.Builder setRegion(String value)
[Output Only] URI of the region where the packetMirroring resides.
optional string region = 138946292;
- Parameters:
value
- The region to set.- Returns:
- This builder for chaining.
-
clearRegion
public PacketMirroring.Builder clearRegion()
[Output Only] URI of the region where the packetMirroring resides.
optional string region = 138946292;
- Returns:
- This builder for chaining.
-
setRegionBytes
public PacketMirroring.Builder setRegionBytes(com.google.protobuf.ByteString value)
[Output Only] URI of the region where the packetMirroring resides.
optional string region = 138946292;
- Parameters:
value
- The bytes for region to set.- Returns:
- This builder for chaining.
-
hasSelfLink
public boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
hasSelfLink
in interfacePacketMirroringOrBuilder
- Returns:
- Whether the selfLink field is set.
-
getSelfLink
public String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
getSelfLink
in interfacePacketMirroringOrBuilder
- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
getSelfLinkBytes
in interfacePacketMirroringOrBuilder
- Returns:
- The bytes for selfLink.
-
setSelfLink
public PacketMirroring.Builder setSelfLink(String value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Parameters:
value
- The selfLink to set.- Returns:
- This builder for chaining.
-
clearSelfLink
public PacketMirroring.Builder clearSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Returns:
- This builder for chaining.
-
setSelfLinkBytes
public PacketMirroring.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Parameters:
value
- The bytes for selfLink to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final PacketMirroring.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PacketMirroring.Builder>
-
mergeUnknownFields
public final PacketMirroring.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PacketMirroring.Builder>
-
-