Class NetworkProfile.Builder (1.65.0)

public static final class NetworkProfile.Builder extends GeneratedMessageV3.Builder<NetworkProfile.Builder> implements NetworkProfileOrBuilder

NetworkProfile represents a Google managed network profile resource.

Protobuf type google.cloud.compute.v1.NetworkProfile

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NetworkProfile.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NetworkProfile.Builder
Overrides

build()

public NetworkProfile build()
Returns
Type Description
NetworkProfile

buildPartial()

public NetworkProfile buildPartial()
Returns
Type Description
NetworkProfile

clear()

public NetworkProfile.Builder clear()
Returns
Type Description
NetworkProfile.Builder
Overrides

clearCreationTimestamp()

public NetworkProfile.Builder clearCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
NetworkProfile.Builder

This builder for chaining.

clearDescription()

public NetworkProfile.Builder clearDescription()

[Output Only] An optional description of this resource.

optional string description = 422937596;

Returns
Type Description
NetworkProfile.Builder

This builder for chaining.

clearFeatures()

public NetworkProfile.Builder clearFeatures()

[Output Only] Features supported by the network.

optional .google.cloud.compute.v1.NetworkProfileNetworkFeatures features = 246211645;

Returns
Type Description
NetworkProfile.Builder

clearField(Descriptors.FieldDescriptor field)

public NetworkProfile.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NetworkProfile.Builder
Overrides

clearId()

public NetworkProfile.Builder clearId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
Type Description
NetworkProfile.Builder

This builder for chaining.

clearKind()

public NetworkProfile.Builder clearKind()

[Output Only] Type of the resource. Always compute#networkProfile for network profiles.

optional string kind = 3292052;

Returns
Type Description
NetworkProfile.Builder

This builder for chaining.

clearLocation()

public NetworkProfile.Builder clearLocation()

[Output Only] Location to which the network is restricted.

optional .google.cloud.compute.v1.NetworkProfileLocation location = 290430901;

Returns
Type Description
NetworkProfile.Builder

clearName()

public NetworkProfile.Builder clearName()

[Output Only] Name of the resource.

optional string name = 3373707;

Returns
Type Description
NetworkProfile.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NetworkProfile.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NetworkProfile.Builder
Overrides
public NetworkProfile.Builder clearSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
Type Description
NetworkProfile.Builder

This builder for chaining.

clearSelfLinkWithId()

public NetworkProfile.Builder clearSelfLinkWithId()

[Output Only] Server-defined URL for this resource with the resource id.

optional string self_link_with_id = 44520962;

Returns
Type Description
NetworkProfile.Builder

This builder for chaining.

clearZone()

public NetworkProfile.Builder clearZone()

[Output Only] Zone to which the network is restricted.

optional string zone = 3744684;

Returns
Type Description
NetworkProfile.Builder

This builder for chaining.

clone()

public NetworkProfile.Builder clone()
Returns
Type Description
NetworkProfile.Builder
Overrides

getCreationTimestamp()

public String getCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
String

The creationTimestamp.

getCreationTimestampBytes()

public ByteString getCreationTimestampBytes()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
ByteString

The bytes for creationTimestamp.

getDefaultInstanceForType()

public NetworkProfile getDefaultInstanceForType()
Returns
Type Description
NetworkProfile

getDescription()

public String getDescription()

[Output Only] An optional description of this resource.

optional string description = 422937596;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

[Output Only] An optional description of this resource.

optional string description = 422937596;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFeatures()

public NetworkProfileNetworkFeatures getFeatures()

[Output Only] Features supported by the network.

optional .google.cloud.compute.v1.NetworkProfileNetworkFeatures features = 246211645;

Returns
Type Description
NetworkProfileNetworkFeatures

The features.

getFeaturesBuilder()

public NetworkProfileNetworkFeatures.Builder getFeaturesBuilder()

[Output Only] Features supported by the network.

optional .google.cloud.compute.v1.NetworkProfileNetworkFeatures features = 246211645;

Returns
Type Description
NetworkProfileNetworkFeatures.Builder

getFeaturesOrBuilder()

public NetworkProfileNetworkFeaturesOrBuilder getFeaturesOrBuilder()

[Output Only] Features supported by the network.

optional .google.cloud.compute.v1.NetworkProfileNetworkFeatures features = 246211645;

Returns
Type Description
NetworkProfileNetworkFeaturesOrBuilder

getId()

public long getId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
Type Description
long

The id.

getKind()

public String getKind()

[Output Only] Type of the resource. Always compute#networkProfile for network profiles.

optional string kind = 3292052;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] Type of the resource. Always compute#networkProfile for network profiles.

optional string kind = 3292052;

Returns
Type Description
ByteString

The bytes for kind.

getLocation()

public NetworkProfileLocation getLocation()

[Output Only] Location to which the network is restricted.

optional .google.cloud.compute.v1.NetworkProfileLocation location = 290430901;

Returns
Type Description
NetworkProfileLocation

The location.

getLocationBuilder()

public NetworkProfileLocation.Builder getLocationBuilder()

[Output Only] Location to which the network is restricted.

optional .google.cloud.compute.v1.NetworkProfileLocation location = 290430901;

Returns
Type Description
NetworkProfileLocation.Builder

getLocationOrBuilder()

public NetworkProfileLocationOrBuilder getLocationOrBuilder()

[Output Only] Location to which the network is restricted.

optional .google.cloud.compute.v1.NetworkProfileLocation location = 290430901;

Returns
Type Description
NetworkProfileLocationOrBuilder

getName()

public String getName()

[Output Only] Name of the resource.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

[Output Only] Name of the resource.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

public String getSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
Type Description
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
Type Description
ByteString

The bytes for selfLink.

getSelfLinkWithId()

public String getSelfLinkWithId()

[Output Only] Server-defined URL for this resource with the resource id.

optional string self_link_with_id = 44520962;

Returns
Type Description
String

The selfLinkWithId.

getSelfLinkWithIdBytes()

public ByteString getSelfLinkWithIdBytes()

[Output Only] Server-defined URL for this resource with the resource id.

optional string self_link_with_id = 44520962;

Returns
Type Description
ByteString

The bytes for selfLinkWithId.

getZone()

public String getZone()

[Output Only] Zone to which the network is restricted.

optional string zone = 3744684;

Returns
Type Description
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

[Output Only] Zone to which the network is restricted.

optional string zone = 3744684;

Returns
Type Description
ByteString

The bytes for zone.

hasCreationTimestamp()

public boolean hasCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
boolean

Whether the creationTimestamp field is set.

hasDescription()

public boolean hasDescription()

[Output Only] An optional description of this resource.

optional string description = 422937596;

Returns
Type Description
boolean

Whether the description field is set.

hasFeatures()

public boolean hasFeatures()

[Output Only] Features supported by the network.

optional .google.cloud.compute.v1.NetworkProfileNetworkFeatures features = 246211645;

Returns
Type Description
boolean

Whether the features field is set.

hasId()

public boolean hasId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
Type Description
boolean

Whether the id field is set.

hasKind()

public boolean hasKind()

[Output Only] Type of the resource. Always compute#networkProfile for network profiles.

optional string kind = 3292052;

Returns
Type Description
boolean

Whether the kind field is set.

hasLocation()

public boolean hasLocation()

[Output Only] Location to which the network is restricted.

optional .google.cloud.compute.v1.NetworkProfileLocation location = 290430901;

Returns
Type Description
boolean

Whether the location field is set.

hasName()

public boolean hasName()

[Output Only] Name of the resource.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

public boolean hasSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
Type Description
boolean

Whether the selfLink field is set.

hasSelfLinkWithId()

public boolean hasSelfLinkWithId()

[Output Only] Server-defined URL for this resource with the resource id.

optional string self_link_with_id = 44520962;

Returns
Type Description
boolean

Whether the selfLinkWithId field is set.

hasZone()

public boolean hasZone()

[Output Only] Zone to which the network is restricted.

optional string zone = 3744684;

Returns
Type Description
boolean

Whether the zone field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFeatures(NetworkProfileNetworkFeatures value)

public NetworkProfile.Builder mergeFeatures(NetworkProfileNetworkFeatures value)

[Output Only] Features supported by the network.

optional .google.cloud.compute.v1.NetworkProfileNetworkFeatures features = 246211645;

Parameter
Name Description
value NetworkProfileNetworkFeatures
Returns
Type Description
NetworkProfile.Builder

mergeFrom(NetworkProfile other)

public NetworkProfile.Builder mergeFrom(NetworkProfile other)
Parameter
Name Description
other NetworkProfile
Returns
Type Description
NetworkProfile.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NetworkProfile.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkProfile.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public NetworkProfile.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
NetworkProfile.Builder
Overrides

mergeLocation(NetworkProfileLocation value)

public NetworkProfile.Builder mergeLocation(NetworkProfileLocation value)

[Output Only] Location to which the network is restricted.

optional .google.cloud.compute.v1.NetworkProfileLocation location = 290430901;

Parameter
Name Description
value NetworkProfileLocation
Returns
Type Description
NetworkProfile.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NetworkProfile.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NetworkProfile.Builder
Overrides

setCreationTimestamp(String value)

public NetworkProfile.Builder setCreationTimestamp(String value)

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
Name Description
value String

The creationTimestamp to set.

Returns
Type Description
NetworkProfile.Builder

This builder for chaining.

setCreationTimestampBytes(ByteString value)

public NetworkProfile.Builder setCreationTimestampBytes(ByteString value)

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
Name Description
value ByteString

The bytes for creationTimestamp to set.

Returns
Type Description
NetworkProfile.Builder

This builder for chaining.

setDescription(String value)

public NetworkProfile.Builder setDescription(String value)

[Output Only] An optional description of this resource.

optional string description = 422937596;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
NetworkProfile.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public NetworkProfile.Builder setDescriptionBytes(ByteString value)

[Output Only] An optional description of this resource.

optional string description = 422937596;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
NetworkProfile.Builder

This builder for chaining.

setFeatures(NetworkProfileNetworkFeatures value)

public NetworkProfile.Builder setFeatures(NetworkProfileNetworkFeatures value)

[Output Only] Features supported by the network.

optional .google.cloud.compute.v1.NetworkProfileNetworkFeatures features = 246211645;

Parameter
Name Description
value NetworkProfileNetworkFeatures
Returns
Type Description
NetworkProfile.Builder

setFeatures(NetworkProfileNetworkFeatures.Builder builderForValue)

public NetworkProfile.Builder setFeatures(NetworkProfileNetworkFeatures.Builder builderForValue)

[Output Only] Features supported by the network.

optional .google.cloud.compute.v1.NetworkProfileNetworkFeatures features = 246211645;

Parameter
Name Description
builderForValue NetworkProfileNetworkFeatures.Builder
Returns
Type Description
NetworkProfile.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public NetworkProfile.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NetworkProfile.Builder
Overrides

setId(long value)

public NetworkProfile.Builder setId(long value)

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Parameter
Name Description
value long

The id to set.

Returns
Type Description
NetworkProfile.Builder

This builder for chaining.

setKind(String value)

public NetworkProfile.Builder setKind(String value)

[Output Only] Type of the resource. Always compute#networkProfile for network profiles.

optional string kind = 3292052;

Parameter
Name Description
value String

The kind to set.

Returns
Type Description
NetworkProfile.Builder

This builder for chaining.

setKindBytes(ByteString value)

public NetworkProfile.Builder setKindBytes(ByteString value)

[Output Only] Type of the resource. Always compute#networkProfile for network profiles.

optional string kind = 3292052;

Parameter
Name Description
value ByteString

The bytes for kind to set.

Returns
Type Description
NetworkProfile.Builder

This builder for chaining.

setLocation(NetworkProfileLocation value)

public NetworkProfile.Builder setLocation(NetworkProfileLocation value)

[Output Only] Location to which the network is restricted.

optional .google.cloud.compute.v1.NetworkProfileLocation location = 290430901;

Parameter
Name Description
value NetworkProfileLocation
Returns
Type Description
NetworkProfile.Builder

setLocation(NetworkProfileLocation.Builder builderForValue)

public NetworkProfile.Builder setLocation(NetworkProfileLocation.Builder builderForValue)

[Output Only] Location to which the network is restricted.

optional .google.cloud.compute.v1.NetworkProfileLocation location = 290430901;

Parameter
Name Description
builderForValue NetworkProfileLocation.Builder
Returns
Type Description
NetworkProfile.Builder

setName(String value)

public NetworkProfile.Builder setName(String value)

[Output Only] Name of the resource.

optional string name = 3373707;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
NetworkProfile.Builder

This builder for chaining.

setNameBytes(ByteString value)

public NetworkProfile.Builder setNameBytes(ByteString value)

[Output Only] Name of the resource.

optional string name = 3373707;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
NetworkProfile.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NetworkProfile.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NetworkProfile.Builder
Overrides
public NetworkProfile.Builder setSelfLink(String value)

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Parameter
Name Description
value String

The selfLink to set.

Returns
Type Description
NetworkProfile.Builder

This builder for chaining.

setSelfLinkBytes(ByteString value)

public NetworkProfile.Builder setSelfLinkBytes(ByteString value)

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Parameter
Name Description
value ByteString

The bytes for selfLink to set.

Returns
Type Description
NetworkProfile.Builder

This builder for chaining.

setSelfLinkWithId(String value)

public NetworkProfile.Builder setSelfLinkWithId(String value)

[Output Only] Server-defined URL for this resource with the resource id.

optional string self_link_with_id = 44520962;

Parameter
Name Description
value String

The selfLinkWithId to set.

Returns
Type Description
NetworkProfile.Builder

This builder for chaining.

setSelfLinkWithIdBytes(ByteString value)

public NetworkProfile.Builder setSelfLinkWithIdBytes(ByteString value)

[Output Only] Server-defined URL for this resource with the resource id.

optional string self_link_with_id = 44520962;

Parameter
Name Description
value ByteString

The bytes for selfLinkWithId to set.

Returns
Type Description
NetworkProfile.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final NetworkProfile.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NetworkProfile.Builder
Overrides

setZone(String value)

public NetworkProfile.Builder setZone(String value)

[Output Only] Zone to which the network is restricted.

optional string zone = 3744684;

Parameter
Name Description
value String

The zone to set.

Returns
Type Description
NetworkProfile.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public NetworkProfile.Builder setZoneBytes(ByteString value)

[Output Only] Zone to which the network is restricted.

optional string zone = 3744684;

Parameter
Name Description
value ByteString

The bytes for zone to set.

Returns
Type Description
NetworkProfile.Builder

This builder for chaining.