Skip to main content

Step

Struct Step 

Source
#[non_exhaustive]
pub struct Step { pub description: String, pub state: State, pub causes_drop: bool, pub project_id: String, pub step_info: Option<StepInfo>, /* private fields */ }
Expand description

A simulated forwarding path is composed of multiple steps. Each step has a well-defined state and an associated configuration.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§description: String

A description of the step. Usually this is a summary of the state.

§state: State

Each step is in one of the pre-defined states.

§causes_drop: bool

This is a step that leads to the final state Drop.

§project_id: String

Project ID that contains the configuration this step is validating.

§step_info: Option<StepInfo>

Configuration or metadata associated with each step. The configuration is filtered based on viewer’s permission. If a viewer has no permission to view the configuration in this step, for non-final states a special state is populated (VIEWER_PERMISSION_MISSING), and for final state the configuration is cleared.

Implementations§

Source§

impl Step

Source

pub fn new() -> Self

Creates a new default instance.

Source

pub fn set_description<T: Into<String>>(self, v: T) -> Self

Sets the value of description.

§Example
let x = Step::new().set_description("example");
Source

pub fn set_state<T: Into<State>>(self, v: T) -> Self

Sets the value of state.

§Example
use google_cloud_networkmanagement_v1::model::step::State;
let x0 = Step::new().set_state(State::StartFromInstance);
let x1 = Step::new().set_state(State::StartFromInternet);
let x2 = Step::new().set_state(State::StartFromGoogleService);
Source

pub fn set_causes_drop<T: Into<bool>>(self, v: T) -> Self

Sets the value of causes_drop.

§Example
let x = Step::new().set_causes_drop(true);
Source

pub fn set_project_id<T: Into<String>>(self, v: T) -> Self

Sets the value of project_id.

§Example
let x = Step::new().set_project_id("example");
Source

pub fn set_step_info<T: Into<Option<StepInfo>>>(self, v: T) -> Self

Sets the value of step_info.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::InstanceInfo;
let x = Step::new().set_step_info(Some(
    google_cloud_networkmanagement_v1::model::step::StepInfo::Instance(InstanceInfo::default().into())));
Source

pub fn instance(&self) -> Option<&Box<InstanceInfo>>

The value of step_info if it holds a Instance, None if the field is not set or holds a different branch.

Source

pub fn set_instance<T: Into<Box<InstanceInfo>>>(self, v: T) -> Self

Sets the value of step_info to hold a Instance.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::InstanceInfo;
let x = Step::new().set_instance(InstanceInfo::default()/* use setters */);
assert!(x.instance().is_some());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn firewall(&self) -> Option<&Box<FirewallInfo>>

The value of step_info if it holds a Firewall, None if the field is not set or holds a different branch.

Source

pub fn set_firewall<T: Into<Box<FirewallInfo>>>(self, v: T) -> Self

Sets the value of step_info to hold a Firewall.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::FirewallInfo;
let x = Step::new().set_firewall(FirewallInfo::default()/* use setters */);
assert!(x.firewall().is_some());
assert!(x.instance().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn route(&self) -> Option<&Box<RouteInfo>>

The value of step_info if it holds a Route, None if the field is not set or holds a different branch.

Source

pub fn set_route<T: Into<Box<RouteInfo>>>(self, v: T) -> Self

Sets the value of step_info to hold a Route.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::RouteInfo;
let x = Step::new().set_route(RouteInfo::default()/* use setters */);
assert!(x.route().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn endpoint(&self) -> Option<&Box<EndpointInfo>>

The value of step_info if it holds a Endpoint, None if the field is not set or holds a different branch.

Source

pub fn set_endpoint<T: Into<Box<EndpointInfo>>>(self, v: T) -> Self

Sets the value of step_info to hold a Endpoint.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::EndpointInfo;
let x = Step::new().set_endpoint(EndpointInfo::default()/* use setters */);
assert!(x.endpoint().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn google_service(&self) -> Option<&Box<GoogleServiceInfo>>

The value of step_info if it holds a GoogleService, None if the field is not set or holds a different branch.

Source

pub fn set_google_service<T: Into<Box<GoogleServiceInfo>>>(self, v: T) -> Self

Sets the value of step_info to hold a GoogleService.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::GoogleServiceInfo;
let x = Step::new().set_google_service(GoogleServiceInfo::default()/* use setters */);
assert!(x.google_service().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn forwarding_rule(&self) -> Option<&Box<ForwardingRuleInfo>>

The value of step_info if it holds a ForwardingRule, None if the field is not set or holds a different branch.

Source

pub fn set_forwarding_rule<T: Into<Box<ForwardingRuleInfo>>>(self, v: T) -> Self

Sets the value of step_info to hold a ForwardingRule.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::ForwardingRuleInfo;
let x = Step::new().set_forwarding_rule(ForwardingRuleInfo::default()/* use setters */);
assert!(x.forwarding_rule().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn hybrid_subnet(&self) -> Option<&Box<HybridSubnetInfo>>

The value of step_info if it holds a HybridSubnet, None if the field is not set or holds a different branch.

Source

pub fn set_hybrid_subnet<T: Into<Box<HybridSubnetInfo>>>(self, v: T) -> Self

Sets the value of step_info to hold a HybridSubnet.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::HybridSubnetInfo;
let x = Step::new().set_hybrid_subnet(HybridSubnetInfo::default()/* use setters */);
assert!(x.hybrid_subnet().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn vpn_gateway(&self) -> Option<&Box<VpnGatewayInfo>>

The value of step_info if it holds a VpnGateway, None if the field is not set or holds a different branch.

Source

pub fn set_vpn_gateway<T: Into<Box<VpnGatewayInfo>>>(self, v: T) -> Self

Sets the value of step_info to hold a VpnGateway.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::VpnGatewayInfo;
let x = Step::new().set_vpn_gateway(VpnGatewayInfo::default()/* use setters */);
assert!(x.vpn_gateway().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn vpn_tunnel(&self) -> Option<&Box<VpnTunnelInfo>>

The value of step_info if it holds a VpnTunnel, None if the field is not set or holds a different branch.

Source

pub fn set_vpn_tunnel<T: Into<Box<VpnTunnelInfo>>>(self, v: T) -> Self

Sets the value of step_info to hold a VpnTunnel.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::VpnTunnelInfo;
let x = Step::new().set_vpn_tunnel(VpnTunnelInfo::default()/* use setters */);
assert!(x.vpn_tunnel().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn interconnect_attachment( &self, ) -> Option<&Box<InterconnectAttachmentInfo>>

The value of step_info if it holds a InterconnectAttachment, None if the field is not set or holds a different branch.

Source

pub fn set_interconnect_attachment<T: Into<Box<InterconnectAttachmentInfo>>>( self, v: T, ) -> Self

Sets the value of step_info to hold a InterconnectAttachment.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::InterconnectAttachmentInfo;
let x = Step::new().set_interconnect_attachment(InterconnectAttachmentInfo::default()/* use setters */);
assert!(x.interconnect_attachment().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn vpc_connector(&self) -> Option<&Box<VpcConnectorInfo>>

The value of step_info if it holds a VpcConnector, None if the field is not set or holds a different branch.

Source

pub fn set_vpc_connector<T: Into<Box<VpcConnectorInfo>>>(self, v: T) -> Self

Sets the value of step_info to hold a VpcConnector.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::VpcConnectorInfo;
let x = Step::new().set_vpc_connector(VpcConnectorInfo::default()/* use setters */);
assert!(x.vpc_connector().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn direct_vpc_egress_connection( &self, ) -> Option<&Box<DirectVpcEgressConnectionInfo>>

The value of step_info if it holds a DirectVpcEgressConnection, None if the field is not set or holds a different branch.

Source

pub fn set_direct_vpc_egress_connection<T: Into<Box<DirectVpcEgressConnectionInfo>>>( self, v: T, ) -> Self

Sets the value of step_info to hold a DirectVpcEgressConnection.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::DirectVpcEgressConnectionInfo;
let x = Step::new().set_direct_vpc_egress_connection(DirectVpcEgressConnectionInfo::default()/* use setters */);
assert!(x.direct_vpc_egress_connection().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn serverless_external_connection( &self, ) -> Option<&Box<ServerlessExternalConnectionInfo>>

The value of step_info if it holds a ServerlessExternalConnection, None if the field is not set or holds a different branch.

Source

pub fn set_serverless_external_connection<T: Into<Box<ServerlessExternalConnectionInfo>>>( self, v: T, ) -> Self

Sets the value of step_info to hold a ServerlessExternalConnection.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::ServerlessExternalConnectionInfo;
let x = Step::new().set_serverless_external_connection(ServerlessExternalConnectionInfo::default()/* use setters */);
assert!(x.serverless_external_connection().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn deliver(&self) -> Option<&Box<DeliverInfo>>

The value of step_info if it holds a Deliver, None if the field is not set or holds a different branch.

Source

pub fn set_deliver<T: Into<Box<DeliverInfo>>>(self, v: T) -> Self

Sets the value of step_info to hold a Deliver.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::DeliverInfo;
let x = Step::new().set_deliver(DeliverInfo::default()/* use setters */);
assert!(x.deliver().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn forward(&self) -> Option<&Box<ForwardInfo>>

The value of step_info if it holds a Forward, None if the field is not set or holds a different branch.

Source

pub fn set_forward<T: Into<Box<ForwardInfo>>>(self, v: T) -> Self

Sets the value of step_info to hold a Forward.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::ForwardInfo;
let x = Step::new().set_forward(ForwardInfo::default()/* use setters */);
assert!(x.forward().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn abort(&self) -> Option<&Box<AbortInfo>>

The value of step_info if it holds a Abort, None if the field is not set or holds a different branch.

Source

pub fn set_abort<T: Into<Box<AbortInfo>>>(self, v: T) -> Self

Sets the value of step_info to hold a Abort.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::AbortInfo;
let x = Step::new().set_abort(AbortInfo::default()/* use setters */);
assert!(x.abort().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn drop(&self) -> Option<&Box<DropInfo>>

The value of step_info if it holds a Drop, None if the field is not set or holds a different branch.

Source

pub fn set_drop<T: Into<Box<DropInfo>>>(self, v: T) -> Self

Sets the value of step_info to hold a Drop.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::DropInfo;
let x = Step::new().set_drop(DropInfo::default()/* use setters */);
assert!(x.drop().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn load_balancer(&self) -> Option<&Box<LoadBalancerInfo>>

👎Deprecated

The value of step_info if it holds a LoadBalancer, None if the field is not set or holds a different branch.

Source

pub fn set_load_balancer<T: Into<Box<LoadBalancerInfo>>>(self, v: T) -> Self

👎Deprecated

Sets the value of step_info to hold a LoadBalancer.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::LoadBalancerInfo;
let x = Step::new().set_load_balancer(LoadBalancerInfo::default()/* use setters */);
assert!(x.load_balancer().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn network(&self) -> Option<&Box<NetworkInfo>>

The value of step_info if it holds a Network, None if the field is not set or holds a different branch.

Source

pub fn set_network<T: Into<Box<NetworkInfo>>>(self, v: T) -> Self

Sets the value of step_info to hold a Network.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::NetworkInfo;
let x = Step::new().set_network(NetworkInfo::default()/* use setters */);
assert!(x.network().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn gke_master(&self) -> Option<&Box<GKEMasterInfo>>

The value of step_info if it holds a GkeMaster, None if the field is not set or holds a different branch.

Source

pub fn set_gke_master<T: Into<Box<GKEMasterInfo>>>(self, v: T) -> Self

Sets the value of step_info to hold a GkeMaster.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::GKEMasterInfo;
let x = Step::new().set_gke_master(GKEMasterInfo::default()/* use setters */);
assert!(x.gke_master().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn gke_pod(&self) -> Option<&Box<GkePodInfo>>

The value of step_info if it holds a GkePod, None if the field is not set or holds a different branch.

Source

pub fn set_gke_pod<T: Into<Box<GkePodInfo>>>(self, v: T) -> Self

Sets the value of step_info to hold a GkePod.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::GkePodInfo;
let x = Step::new().set_gke_pod(GkePodInfo::default()/* use setters */);
assert!(x.gke_pod().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn ip_masquerading_skipped(&self) -> Option<&Box<IpMasqueradingSkippedInfo>>

The value of step_info if it holds a IpMasqueradingSkipped, None if the field is not set or holds a different branch.

Source

pub fn set_ip_masquerading_skipped<T: Into<Box<IpMasqueradingSkippedInfo>>>( self, v: T, ) -> Self

Sets the value of step_info to hold a IpMasqueradingSkipped.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::IpMasqueradingSkippedInfo;
let x = Step::new().set_ip_masquerading_skipped(IpMasqueradingSkippedInfo::default()/* use setters */);
assert!(x.ip_masquerading_skipped().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn gke_network_policy(&self) -> Option<&Box<GkeNetworkPolicyInfo>>

The value of step_info if it holds a GkeNetworkPolicy, None if the field is not set or holds a different branch.

Source

pub fn set_gke_network_policy<T: Into<Box<GkeNetworkPolicyInfo>>>( self, v: T, ) -> Self

Sets the value of step_info to hold a GkeNetworkPolicy.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::GkeNetworkPolicyInfo;
let x = Step::new().set_gke_network_policy(GkeNetworkPolicyInfo::default()/* use setters */);
assert!(x.gke_network_policy().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn gke_network_policy_skipped( &self, ) -> Option<&Box<GkeNetworkPolicySkippedInfo>>

The value of step_info if it holds a GkeNetworkPolicySkipped, None if the field is not set or holds a different branch.

Source

pub fn set_gke_network_policy_skipped<T: Into<Box<GkeNetworkPolicySkippedInfo>>>( self, v: T, ) -> Self

Sets the value of step_info to hold a GkeNetworkPolicySkipped.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::GkeNetworkPolicySkippedInfo;
let x = Step::new().set_gke_network_policy_skipped(GkeNetworkPolicySkippedInfo::default()/* use setters */);
assert!(x.gke_network_policy_skipped().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn cloud_sql_instance(&self) -> Option<&Box<CloudSQLInstanceInfo>>

The value of step_info if it holds a CloudSqlInstance, None if the field is not set or holds a different branch.

Source

pub fn set_cloud_sql_instance<T: Into<Box<CloudSQLInstanceInfo>>>( self, v: T, ) -> Self

Sets the value of step_info to hold a CloudSqlInstance.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::CloudSQLInstanceInfo;
let x = Step::new().set_cloud_sql_instance(CloudSQLInstanceInfo::default()/* use setters */);
assert!(x.cloud_sql_instance().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn redis_instance(&self) -> Option<&Box<RedisInstanceInfo>>

The value of step_info if it holds a RedisInstance, None if the field is not set or holds a different branch.

Source

pub fn set_redis_instance<T: Into<Box<RedisInstanceInfo>>>(self, v: T) -> Self

Sets the value of step_info to hold a RedisInstance.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::RedisInstanceInfo;
let x = Step::new().set_redis_instance(RedisInstanceInfo::default()/* use setters */);
assert!(x.redis_instance().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn redis_cluster(&self) -> Option<&Box<RedisClusterInfo>>

The value of step_info if it holds a RedisCluster, None if the field is not set or holds a different branch.

Source

pub fn set_redis_cluster<T: Into<Box<RedisClusterInfo>>>(self, v: T) -> Self

Sets the value of step_info to hold a RedisCluster.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::RedisClusterInfo;
let x = Step::new().set_redis_cluster(RedisClusterInfo::default()/* use setters */);
assert!(x.redis_cluster().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn cloud_function(&self) -> Option<&Box<CloudFunctionInfo>>

The value of step_info if it holds a CloudFunction, None if the field is not set or holds a different branch.

Source

pub fn set_cloud_function<T: Into<Box<CloudFunctionInfo>>>(self, v: T) -> Self

Sets the value of step_info to hold a CloudFunction.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::CloudFunctionInfo;
let x = Step::new().set_cloud_function(CloudFunctionInfo::default()/* use setters */);
assert!(x.cloud_function().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn app_engine_version(&self) -> Option<&Box<AppEngineVersionInfo>>

The value of step_info if it holds a AppEngineVersion, None if the field is not set or holds a different branch.

Source

pub fn set_app_engine_version<T: Into<Box<AppEngineVersionInfo>>>( self, v: T, ) -> Self

Sets the value of step_info to hold a AppEngineVersion.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::AppEngineVersionInfo;
let x = Step::new().set_app_engine_version(AppEngineVersionInfo::default()/* use setters */);
assert!(x.app_engine_version().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn cloud_run_revision(&self) -> Option<&Box<CloudRunRevisionInfo>>

The value of step_info if it holds a CloudRunRevision, None if the field is not set or holds a different branch.

Source

pub fn set_cloud_run_revision<T: Into<Box<CloudRunRevisionInfo>>>( self, v: T, ) -> Self

Sets the value of step_info to hold a CloudRunRevision.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::CloudRunRevisionInfo;
let x = Step::new().set_cloud_run_revision(CloudRunRevisionInfo::default()/* use setters */);
assert!(x.cloud_run_revision().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn nat(&self) -> Option<&Box<NatInfo>>

The value of step_info if it holds a Nat, None if the field is not set or holds a different branch.

Source

pub fn set_nat<T: Into<Box<NatInfo>>>(self, v: T) -> Self

Sets the value of step_info to hold a Nat.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::NatInfo;
let x = Step::new().set_nat(NatInfo::default()/* use setters */);
assert!(x.nat().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn proxy_connection(&self) -> Option<&Box<ProxyConnectionInfo>>

The value of step_info if it holds a ProxyConnection, None if the field is not set or holds a different branch.

Source

pub fn set_proxy_connection<T: Into<Box<ProxyConnectionInfo>>>( self, v: T, ) -> Self

Sets the value of step_info to hold a ProxyConnection.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::ProxyConnectionInfo;
let x = Step::new().set_proxy_connection(ProxyConnectionInfo::default()/* use setters */);
assert!(x.proxy_connection().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn load_balancer_backend_info( &self, ) -> Option<&Box<LoadBalancerBackendInfo>>

The value of step_info if it holds a LoadBalancerBackendInfo, None if the field is not set or holds a different branch.

Source

pub fn set_load_balancer_backend_info<T: Into<Box<LoadBalancerBackendInfo>>>( self, v: T, ) -> Self

Sets the value of step_info to hold a LoadBalancerBackendInfo.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::LoadBalancerBackendInfo;
let x = Step::new().set_load_balancer_backend_info(LoadBalancerBackendInfo::default()/* use setters */);
assert!(x.load_balancer_backend_info().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn storage_bucket(&self) -> Option<&Box<StorageBucketInfo>>

The value of step_info if it holds a StorageBucket, None if the field is not set or holds a different branch.

Source

pub fn set_storage_bucket<T: Into<Box<StorageBucketInfo>>>(self, v: T) -> Self

Sets the value of step_info to hold a StorageBucket.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::StorageBucketInfo;
let x = Step::new().set_storage_bucket(StorageBucketInfo::default()/* use setters */);
assert!(x.storage_bucket().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.serverless_neg().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn serverless_neg(&self) -> Option<&Box<ServerlessNegInfo>>

The value of step_info if it holds a ServerlessNeg, None if the field is not set or holds a different branch.

Source

pub fn set_serverless_neg<T: Into<Box<ServerlessNegInfo>>>(self, v: T) -> Self

Sets the value of step_info to hold a ServerlessNeg.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::ServerlessNegInfo;
let x = Step::new().set_serverless_neg(ServerlessNegInfo::default()/* use setters */);
assert!(x.serverless_neg().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.ngfw_packet_inspection().is_none());
Source

pub fn ngfw_packet_inspection(&self) -> Option<&Box<NgfwPacketInspectionInfo>>

The value of step_info if it holds a NgfwPacketInspection, None if the field is not set or holds a different branch.

Source

pub fn set_ngfw_packet_inspection<T: Into<Box<NgfwPacketInspectionInfo>>>( self, v: T, ) -> Self

Sets the value of step_info to hold a NgfwPacketInspection.

Note that all the setters affecting step_info are mutually exclusive.

§Example
use google_cloud_networkmanagement_v1::model::NgfwPacketInspectionInfo;
let x = Step::new().set_ngfw_packet_inspection(NgfwPacketInspectionInfo::default()/* use setters */);
assert!(x.ngfw_packet_inspection().is_some());
assert!(x.instance().is_none());
assert!(x.firewall().is_none());
assert!(x.route().is_none());
assert!(x.endpoint().is_none());
assert!(x.google_service().is_none());
assert!(x.forwarding_rule().is_none());
assert!(x.hybrid_subnet().is_none());
assert!(x.vpn_gateway().is_none());
assert!(x.vpn_tunnel().is_none());
assert!(x.interconnect_attachment().is_none());
assert!(x.vpc_connector().is_none());
assert!(x.direct_vpc_egress_connection().is_none());
assert!(x.serverless_external_connection().is_none());
assert!(x.deliver().is_none());
assert!(x.forward().is_none());
assert!(x.abort().is_none());
assert!(x.drop().is_none());
assert!(x.load_balancer().is_none());
assert!(x.network().is_none());
assert!(x.gke_master().is_none());
assert!(x.gke_pod().is_none());
assert!(x.ip_masquerading_skipped().is_none());
assert!(x.gke_network_policy().is_none());
assert!(x.gke_network_policy_skipped().is_none());
assert!(x.cloud_sql_instance().is_none());
assert!(x.redis_instance().is_none());
assert!(x.redis_cluster().is_none());
assert!(x.cloud_function().is_none());
assert!(x.app_engine_version().is_none());
assert!(x.cloud_run_revision().is_none());
assert!(x.nat().is_none());
assert!(x.proxy_connection().is_none());
assert!(x.load_balancer_backend_info().is_none());
assert!(x.storage_bucket().is_none());
assert!(x.serverless_neg().is_none());

Trait Implementations§

Source§

impl Clone for Step

Source§

fn clone(&self) -> Step

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Step

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Step

Source§

fn default() -> Step

Returns the “default value” for a type. Read more
Source§

impl Message for Step

Source§

fn typename() -> &'static str

The typename of this message.
Source§

impl PartialEq for Step

Source§

fn eq(&self, other: &Step) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Step

Auto Trait Implementations§

§

impl Freeze for Step

§

impl RefUnwindSafe for Step

§

impl Send for Step

§

impl Sync for Step

§

impl Unpin for Step

§

impl UnsafeUnpin for Step

§

impl UnwindSafe for Step

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FutureExt for T

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more