Interface NetworkPolicy.NetworkServiceOrBuilder (0.40.0)

public static interface NetworkPolicy.NetworkServiceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEnabled()

public abstract boolean getEnabled()

True if the service is enabled; false otherwise.

bool enabled = 1;

Returns
Type Description
boolean

The enabled.

getState()

public abstract NetworkPolicy.NetworkService.State getState()

Output only. State of the service. New values may be added to this enum when appropriate.

.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NetworkPolicy.NetworkService.State

The state.

getStateValue()

public abstract int getStateValue()

Output only. State of the service. New values may be added to this enum when appropriate.

.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.