Class NetworkPolicy.NetworkService (0.41.0)

public static final class NetworkPolicy.NetworkService extends GeneratedMessageV3 implements NetworkPolicy.NetworkServiceOrBuilder

Represents a network service that is managed by a NetworkPolicy resource. A network service provides a way to control an aspect of external access to VMware workloads. For example, whether the VMware workloads in the private clouds governed by a network policy can access or be accessed from the internet.

Protobuf type google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService

Static Fields

ENABLED_FIELD_NUMBER

public static final int ENABLED_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static NetworkPolicy.NetworkService getDefaultInstance()
Returns
Type Description
NetworkPolicy.NetworkService

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static NetworkPolicy.NetworkService.Builder newBuilder()
Returns
Type Description
NetworkPolicy.NetworkService.Builder

newBuilder(NetworkPolicy.NetworkService prototype)

public static NetworkPolicy.NetworkService.Builder newBuilder(NetworkPolicy.NetworkService prototype)
Parameter
Name Description
prototype NetworkPolicy.NetworkService
Returns
Type Description
NetworkPolicy.NetworkService.Builder

parseDelimitedFrom(InputStream input)

public static NetworkPolicy.NetworkService parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NetworkPolicy.NetworkService
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkPolicy.NetworkService parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkPolicy.NetworkService
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static NetworkPolicy.NetworkService parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
NetworkPolicy.NetworkService
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NetworkPolicy.NetworkService parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkPolicy.NetworkService
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NetworkPolicy.NetworkService parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
NetworkPolicy.NetworkService
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NetworkPolicy.NetworkService parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkPolicy.NetworkService
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NetworkPolicy.NetworkService parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
NetworkPolicy.NetworkService
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkPolicy.NetworkService parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkPolicy.NetworkService
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static NetworkPolicy.NetworkService parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NetworkPolicy.NetworkService
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkPolicy.NetworkService parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkPolicy.NetworkService
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static NetworkPolicy.NetworkService parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
NetworkPolicy.NetworkService
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NetworkPolicy.NetworkService parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkPolicy.NetworkService
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<NetworkPolicy.NetworkService> parser()
Returns
Type Description
Parser<NetworkService>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public NetworkPolicy.NetworkService getDefaultInstanceForType()
Returns
Type Description
NetworkPolicy.NetworkService

getEnabled()

public boolean getEnabled()

True if the service is enabled; false otherwise.

bool enabled = 1;

Returns
Type Description
boolean

The enabled.

getParserForType()

public Parser<NetworkPolicy.NetworkService> getParserForType()
Returns
Type Description
Parser<NetworkService>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public 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 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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public NetworkPolicy.NetworkService.Builder newBuilderForType()
Returns
Type Description
NetworkPolicy.NetworkService.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NetworkPolicy.NetworkService.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
NetworkPolicy.NetworkService.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public NetworkPolicy.NetworkService.Builder toBuilder()
Returns
Type Description
NetworkPolicy.NetworkService.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException