Class NetworkResourceConfig (0.1.0)

public final class NetworkResourceConfig extends GeneratedMessageV3 implements NetworkResourceConfigOrBuilder

Describes how a network resource should be initialized. Each network resource can either be imported from an existing Google Cloud resource or initialized when the cluster is created.

Protobuf type google.cloud.hypercomputecluster.v1beta.NetworkResourceConfig

Static Fields

EXISTING_NETWORK_FIELD_NUMBER

public static final int EXISTING_NETWORK_FIELD_NUMBER
Field Value
Type Description
int

NEW_NETWORK_FIELD_NUMBER

public static final int NEW_NETWORK_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static NetworkResourceConfig getDefaultInstance()
Returns
Type Description
NetworkResourceConfig

getDescriptor()

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

newBuilder()

public static NetworkResourceConfig.Builder newBuilder()
Returns
Type Description
NetworkResourceConfig.Builder

newBuilder(NetworkResourceConfig prototype)

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

parseDelimitedFrom(InputStream input)

public static NetworkResourceConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NetworkResourceConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static NetworkResourceConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
NetworkResourceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static NetworkResourceConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
NetworkResourceConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static NetworkResourceConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NetworkResourceConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static NetworkResourceConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
NetworkResourceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<NetworkResourceConfig> parser()
Returns
Type Description
Parser<NetworkResourceConfig>

Methods

equals(Object obj)

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

getConfigCase()

public NetworkResourceConfig.ConfigCase getConfigCase()
Returns
Type Description
NetworkResourceConfig.ConfigCase

getDefaultInstanceForType()

public NetworkResourceConfig getDefaultInstanceForType()
Returns
Type Description
NetworkResourceConfig

getExistingNetwork()

public ExistingNetworkConfig getExistingNetwork()

Optional. Immutable. If set, indicates that an existing network should be imported.

.google.cloud.hypercomputecluster.v1beta.ExistingNetworkConfig existing_network = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ExistingNetworkConfig

The existingNetwork.

getExistingNetworkOrBuilder()

public ExistingNetworkConfigOrBuilder getExistingNetworkOrBuilder()

Optional. Immutable. If set, indicates that an existing network should be imported.

.google.cloud.hypercomputecluster.v1beta.ExistingNetworkConfig existing_network = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ExistingNetworkConfigOrBuilder

getNewNetwork()

public NewNetworkConfig getNewNetwork()

Optional. Immutable. If set, indicates that a new network should be created.

.google.cloud.hypercomputecluster.v1beta.NewNetworkConfig new_network = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
NewNetworkConfig

The newNetwork.

getNewNetworkOrBuilder()

public NewNetworkConfigOrBuilder getNewNetworkOrBuilder()

Optional. Immutable. If set, indicates that a new network should be created.

.google.cloud.hypercomputecluster.v1beta.NewNetworkConfig new_network = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
NewNetworkConfigOrBuilder

getParserForType()

public Parser<NetworkResourceConfig> getParserForType()
Returns
Type Description
Parser<NetworkResourceConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasExistingNetwork()

public boolean hasExistingNetwork()

Optional. Immutable. If set, indicates that an existing network should be imported.

.google.cloud.hypercomputecluster.v1beta.ExistingNetworkConfig existing_network = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the existingNetwork field is set.

hasNewNetwork()

public boolean hasNewNetwork()

Optional. Immutable. If set, indicates that a new network should be created.

.google.cloud.hypercomputecluster.v1beta.NewNetworkConfig new_network = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the newNetwork field is set.

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 NetworkResourceConfig.Builder newBuilderForType()
Returns
Type Description
NetworkResourceConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public NetworkResourceConfig.Builder toBuilder()
Returns
Type Description
NetworkResourceConfig.Builder

writeTo(CodedOutputStream output)

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