Class NetworkPolicy.NetworkService (0.24.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
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static NetworkPolicy.NetworkService getDefaultInstance()
Returns
TypeDescription
NetworkPolicy.NetworkService

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static NetworkPolicy.NetworkService.Builder newBuilder()
Returns
TypeDescription
NetworkPolicy.NetworkService.Builder

newBuilder(NetworkPolicy.NetworkService prototype)

public static NetworkPolicy.NetworkService.Builder newBuilder(NetworkPolicy.NetworkService prototype)
Parameter
NameDescription
prototypeNetworkPolicy.NetworkService
Returns
TypeDescription
NetworkPolicy.NetworkService.Builder

parseDelimitedFrom(InputStream input)

public static NetworkPolicy.NetworkService parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NetworkPolicy.NetworkService
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkPolicy.NetworkService parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkPolicy.NetworkService
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static NetworkPolicy.NetworkService parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
NetworkPolicy.NetworkService
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NetworkPolicy.NetworkService parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkPolicy.NetworkService
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NetworkPolicy.NetworkService parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
NetworkPolicy.NetworkService
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NetworkPolicy.NetworkService parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkPolicy.NetworkService
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NetworkPolicy.NetworkService parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
NetworkPolicy.NetworkService
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkPolicy.NetworkService parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkPolicy.NetworkService
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static NetworkPolicy.NetworkService parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NetworkPolicy.NetworkService
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkPolicy.NetworkService parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkPolicy.NetworkService
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static NetworkPolicy.NetworkService parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
NetworkPolicy.NetworkService
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NetworkPolicy.NetworkService parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkPolicy.NetworkService
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public NetworkPolicy.NetworkService getDefaultInstanceForType()
Returns
TypeDescription
NetworkPolicy.NetworkService

getEnabled()

public boolean getEnabled()

True if the service is enabled; false otherwise.

bool enabled = 1;

Returns
TypeDescription
boolean

The enabled.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for state.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public NetworkPolicy.NetworkService.Builder newBuilderForType()
Returns
TypeDescription
NetworkPolicy.NetworkService.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NetworkPolicy.NetworkService.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
NetworkPolicy.NetworkService.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public NetworkPolicy.NetworkService.Builder toBuilder()
Returns
TypeDescription
NetworkPolicy.NetworkService.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException