Class VpcFlowLogsConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig
- All Implemented Interfaces:
VpcFlowLogsConfigOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class VpcFlowLogsConfig
extends com.google.protobuf.GeneratedMessage
implements VpcFlowLogsConfigOrBuilder
A configuration to generate VPC Flow Logs.Protobuf type
google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumToggles the aggregation interval for collecting flow logs by 5-tuple.static final classA configuration to generate VPC Flow Logs.static enumDetermines whether to include cross project annotations in the logs.static enumConfigures which log fields would be included.static enumDetermines whether this configuration will be generating logs.static enumstatic enumOutput only.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(String key) Optional.booleanOptional.intOptional.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Optional.intOptional.static VpcFlowLogsConfigOptional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.floatOptional.Traffic will be logged from the Interconnect Attachment.com.google.protobuf.ByteStringTraffic will be logged from the Interconnect Attachment.Deprecated.intOptional.Optional.getLabelsOrDefault(String key, String defaultValue) Optional.getLabelsOrThrow(String key) Optional.Optional.getMetadataFields(int index) Optional.com.google.protobuf.ByteStringgetMetadataFieldsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.intOptional.getName()Identifier.com.google.protobuf.ByteStringIdentifier.Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network.com.google.protobuf.ByteStringTraffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network.com.google.protobuf.Parser<VpcFlowLogsConfig>intgetState()Optional.intOptional.Traffic will be logged from VMs within the subnetwork.com.google.protobuf.ByteStringTraffic will be logged from VMs within the subnetwork.Output only.intOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Traffic will be logged from the VPN Tunnel.com.google.protobuf.ByteStringTraffic will be logged from the VPN Tunnel.booleanOptional.booleanOutput only.booleanOptional.booleanOptional.booleanOptional.booleanOptional.inthashCode()booleanTraffic will be logged from the Interconnect Attachment.booleanOptional.booleanTraffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network.booleanhasState()Optional.booleanTraffic will be logged from VMs within the subnetwork.booleanOutput only.booleanOutput only.booleanTraffic will be logged from the VPN Tunnel.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic VpcFlowLogsConfig.Builderstatic VpcFlowLogsConfig.BuildernewBuilder(VpcFlowLogsConfig prototype) protected VpcFlowLogsConfig.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static VpcFlowLogsConfigparseDelimitedFrom(InputStream input) static VpcFlowLogsConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VpcFlowLogsConfigparseFrom(byte[] data) static VpcFlowLogsConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VpcFlowLogsConfigparseFrom(com.google.protobuf.ByteString data) static VpcFlowLogsConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VpcFlowLogsConfigparseFrom(com.google.protobuf.CodedInputStream input) static VpcFlowLogsConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VpcFlowLogsConfigparseFrom(InputStream input) static VpcFlowLogsConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VpcFlowLogsConfigparseFrom(ByteBuffer data) static VpcFlowLogsConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<VpcFlowLogsConfig>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER- See Also:
-
AGGREGATION_INTERVAL_FIELD_NUMBER
public static final int AGGREGATION_INTERVAL_FIELD_NUMBER- See Also:
-
FLOW_SAMPLING_FIELD_NUMBER
public static final int FLOW_SAMPLING_FIELD_NUMBER- See Also:
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER- See Also:
-
METADATA_FIELDS_FIELD_NUMBER
public static final int METADATA_FIELDS_FIELD_NUMBER- See Also:
-
FILTER_EXPR_FIELD_NUMBER
public static final int FILTER_EXPR_FIELD_NUMBER- See Also:
-
CROSS_PROJECT_METADATA_FIELD_NUMBER
public static final int CROSS_PROJECT_METADATA_FIELD_NUMBER- See Also:
-
TARGET_RESOURCE_STATE_FIELD_NUMBER
public static final int TARGET_RESOURCE_STATE_FIELD_NUMBER- See Also:
-
NETWORK_FIELD_NUMBER
public static final int NETWORK_FIELD_NUMBER- See Also:
-
SUBNET_FIELD_NUMBER
public static final int SUBNET_FIELD_NUMBER- See Also:
-
INTERCONNECT_ATTACHMENT_FIELD_NUMBER
public static final int INTERCONNECT_ATTACHMENT_FIELD_NUMBER- See Also:
-
VPN_TUNNEL_FIELD_NUMBER
public static final int VPN_TUNNEL_FIELD_NUMBER- See Also:
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getTargetResourceCase
- Specified by:
getTargetResourceCasein interfaceVpcFlowLogsConfigOrBuilder
-
getName
Identifier. Unique name of the configuration. The name can have one of the following forms: - For project-level configurations: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For organization-level configurations: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNamein interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Identifier. Unique name of the configuration. The name can have one of the following forms: - For project-level configurations: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For organization-level configurations: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNameBytesin interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The bytes for name.
-
hasDescription
public boolean hasDescription()Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum of 512 characters.
optional string description = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasDescriptionin interfaceVpcFlowLogsConfigOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum of 512 characters.
optional string description = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionin interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum of 512 characters.
optional string description = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionBytesin interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The bytes for description.
-
hasState
public boolean hasState()Optional. The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled. Setting state=DISABLED will pause the log generation for this config.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasStatein interfaceVpcFlowLogsConfigOrBuilder- Returns:
- Whether the state field is set.
-
getStateValue
public int getStateValue()Optional. The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled. Setting state=DISABLED will pause the log generation for this config.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStateValuein interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
Optional. The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled. Setting state=DISABLED will pause the log generation for this config.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStatein interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The state.
-
hasAggregationInterval
public boolean hasAggregationInterval()Optional. The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasAggregationIntervalin interfaceVpcFlowLogsConfigOrBuilder- Returns:
- Whether the aggregationInterval field is set.
-
getAggregationIntervalValue
public int getAggregationIntervalValue()Optional. The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAggregationIntervalValuein interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The enum numeric value on the wire for aggregationInterval.
-
getAggregationInterval
Optional. The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAggregationIntervalin interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The aggregationInterval.
-
hasFlowSampling
public boolean hasFlowSampling()Optional. The value of the field must be in (0, 1]. The sampling rate of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use the state field instead. Default value is 1.0.
optional float flow_sampling = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasFlowSamplingin interfaceVpcFlowLogsConfigOrBuilder- Returns:
- Whether the flowSampling field is set.
-
getFlowSampling
public float getFlowSampling()Optional. The value of the field must be in (0, 1]. The sampling rate of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use the state field instead. Default value is 1.0.
optional float flow_sampling = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFlowSamplingin interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The flowSampling.
-
hasMetadata
public boolean hasMetadata()Optional. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasMetadatain interfaceVpcFlowLogsConfigOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadataValue
public int getMetadataValue()Optional. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMetadataValuein interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The enum numeric value on the wire for metadata.
-
getMetadata
Optional. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMetadatain interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The metadata.
-
getMetadataFieldsList
public com.google.protobuf.ProtocolStringList getMetadataFieldsList()Optional. Custom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA.
repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMetadataFieldsListin interfaceVpcFlowLogsConfigOrBuilder- Returns:
- A list containing the metadataFields.
-
getMetadataFieldsCount
public int getMetadataFieldsCount()Optional. Custom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA.
repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMetadataFieldsCountin interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The count of metadataFields.
-
getMetadataFields
Optional. Custom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA.
repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMetadataFieldsin interfaceVpcFlowLogsConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The metadataFields at the given index.
-
getMetadataFieldsBytes
public com.google.protobuf.ByteString getMetadataFieldsBytes(int index) Optional. Custom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA.
repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMetadataFieldsBytesin interfaceVpcFlowLogsConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the metadataFields at the given index.
-
hasFilterExpr
public boolean hasFilterExpr()Optional. Export filter used to define which VPC Flow Logs should be logged.
optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasFilterExprin interfaceVpcFlowLogsConfigOrBuilder- Returns:
- Whether the filterExpr field is set.
-
getFilterExpr
Optional. Export filter used to define which VPC Flow Logs should be logged.
optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFilterExprin interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The filterExpr.
-
getFilterExprBytes
public com.google.protobuf.ByteString getFilterExprBytes()Optional. Export filter used to define which VPC Flow Logs should be logged.
optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFilterExprBytesin interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The bytes for filterExpr.
-
hasCrossProjectMetadata
public boolean hasCrossProjectMetadata()Optional. Determines whether to include cross project annotations in the logs. This field is available only for organization configurations. If not specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasCrossProjectMetadatain interfaceVpcFlowLogsConfigOrBuilder- Returns:
- Whether the crossProjectMetadata field is set.
-
getCrossProjectMetadataValue
public int getCrossProjectMetadataValue()Optional. Determines whether to include cross project annotations in the logs. This field is available only for organization configurations. If not specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCrossProjectMetadataValuein interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The enum numeric value on the wire for crossProjectMetadata.
-
getCrossProjectMetadata
Optional. Determines whether to include cross project annotations in the logs. This field is available only for organization configurations. If not specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCrossProjectMetadatain interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The crossProjectMetadata.
-
hasTargetResourceState
public boolean hasTargetResourceState()Output only. Describes the state of the configured target resource for diagnostic purposes.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasTargetResourceStatein interfaceVpcFlowLogsConfigOrBuilder- Returns:
- Whether the targetResourceState field is set.
-
getTargetResourceStateValue
public int getTargetResourceStateValue()Output only. Describes the state of the configured target resource for diagnostic purposes.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTargetResourceStateValuein interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The enum numeric value on the wire for targetResourceState.
-
getTargetResourceState
Output only. Describes the state of the configured target resource for diagnostic purposes.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTargetResourceStatein interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The targetResourceState.
-
hasNetwork
public boolean hasNetwork()Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/global/networks/{name}string network = 100;- Specified by:
hasNetworkin interfaceVpcFlowLogsConfigOrBuilder- Returns:
- Whether the network field is set.
-
getNetwork
Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/global/networks/{name}string network = 100;- Specified by:
getNetworkin interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/global/networks/{name}string network = 100;- Specified by:
getNetworkBytesin interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The bytes for network.
-
hasSubnet
public boolean hasSubnet()Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}string subnet = 101;- Specified by:
hasSubnetin interfaceVpcFlowLogsConfigOrBuilder- Returns:
- Whether the subnet field is set.
-
getSubnet
Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}string subnet = 101;- Specified by:
getSubnetin interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The subnet.
-
getSubnetBytes
public com.google.protobuf.ByteString getSubnetBytes()Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}string subnet = 101;- Specified by:
getSubnetBytesin interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The bytes for subnet.
-
hasInterconnectAttachment
public boolean hasInterconnectAttachment()Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name}string interconnect_attachment = 102;- Specified by:
hasInterconnectAttachmentin interfaceVpcFlowLogsConfigOrBuilder- Returns:
- Whether the interconnectAttachment field is set.
-
getInterconnectAttachment
Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name}string interconnect_attachment = 102;- Specified by:
getInterconnectAttachmentin interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The interconnectAttachment.
-
getInterconnectAttachmentBytes
public com.google.protobuf.ByteString getInterconnectAttachmentBytes()Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name}string interconnect_attachment = 102;- Specified by:
getInterconnectAttachmentBytesin interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The bytes for interconnectAttachment.
-
hasVpnTunnel
public boolean hasVpnTunnel()Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}string vpn_tunnel = 103;- Specified by:
hasVpnTunnelin interfaceVpcFlowLogsConfigOrBuilder- Returns:
- Whether the vpnTunnel field is set.
-
getVpnTunnel
Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}string vpn_tunnel = 103;- Specified by:
getVpnTunnelin interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The vpnTunnel.
-
getVpnTunnelBytes
public com.google.protobuf.ByteString getVpnTunnelBytes()Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}string vpn_tunnel = 103;- Specified by:
getVpnTunnelBytesin interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The bytes for vpnTunnel.
-
getLabelsCount
public int getLabelsCount()Description copied from interface:VpcFlowLogsConfigOrBuilderOptional. Resource labels to represent user-provided metadata.
map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsCountin interfaceVpcFlowLogsConfigOrBuilder
-
containsLabels
Optional. Resource labels to represent user-provided metadata.
map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsLabelsin interfaceVpcFlowLogsConfigOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceVpcFlowLogsConfigOrBuilder
-
getLabelsMap
Optional. Resource labels to represent user-provided metadata.
map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsMapin interfaceVpcFlowLogsConfigOrBuilder
-
getLabelsOrDefault
Optional. Resource labels to represent user-provided metadata.
map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrDefaultin interfaceVpcFlowLogsConfigOrBuilder
-
getLabelsOrThrow
Optional. Resource labels to represent user-provided metadata.
map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrThrowin interfaceVpcFlowLogsConfigOrBuilder
-
hasCreateTime
public boolean hasCreateTime()Output only. The time the config was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceVpcFlowLogsConfigOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The time the config was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The time the config was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceVpcFlowLogsConfigOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. The time the config was updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceVpcFlowLogsConfigOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. The time the config was updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceVpcFlowLogsConfigOrBuilder- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The time the config was updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceVpcFlowLogsConfigOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static VpcFlowLogsConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VpcFlowLogsConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VpcFlowLogsConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VpcFlowLogsConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VpcFlowLogsConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VpcFlowLogsConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static VpcFlowLogsConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static VpcFlowLogsConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static VpcFlowLogsConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static VpcFlowLogsConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected VpcFlowLogsConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-