Class NetworkProfileLocation.Builder (1.93.0)

public static final class NetworkProfileLocation.Builder extends GeneratedMessage.Builder<NetworkProfileLocation.Builder> implements NetworkProfileLocationOrBuilder

Protobuf type google.cloud.compute.v1.NetworkProfileLocation

Static Methods

getDescriptor()

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

Methods

build()

public NetworkProfileLocation build()
Returns
Type Description
NetworkProfileLocation

buildPartial()

public NetworkProfileLocation buildPartial()
Returns
Type Description
NetworkProfileLocation

clear()

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

clearName()

public NetworkProfileLocation.Builder clearName()

optional string name = 3373707;

Returns
Type Description
NetworkProfileLocation.Builder

This builder for chaining.

clearScope()

public NetworkProfileLocation.Builder clearScope()

Check the Scope enum for the list of possible values.

optional string scope = 109264468;

Returns
Type Description
NetworkProfileLocation.Builder

This builder for chaining.

getDefaultInstanceForType()

public NetworkProfileLocation getDefaultInstanceForType()
Returns
Type Description
NetworkProfileLocation

getDescriptorForType()

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

getName()

public String getName()

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getScope()

public String getScope()

Check the Scope enum for the list of possible values.

optional string scope = 109264468;

Returns
Type Description
String

The scope.

getScopeBytes()

public ByteString getScopeBytes()

Check the Scope enum for the list of possible values.

optional string scope = 109264468;

Returns
Type Description
ByteString

The bytes for scope.

hasName()

public boolean hasName()

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hasScope()

public boolean hasScope()

Check the Scope enum for the list of possible values.

optional string scope = 109264468;

Returns
Type Description
boolean

Whether the scope field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NetworkProfileLocation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public NetworkProfileLocation.Builder setName(String value)

optional string name = 3373707;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
NetworkProfileLocation.Builder

This builder for chaining.

setNameBytes(ByteString value)

public NetworkProfileLocation.Builder setNameBytes(ByteString value)

optional string name = 3373707;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
NetworkProfileLocation.Builder

This builder for chaining.

setScope(String value)

public NetworkProfileLocation.Builder setScope(String value)

Check the Scope enum for the list of possible values.

optional string scope = 109264468;

Parameter
Name Description
value String

The scope to set.

Returns
Type Description
NetworkProfileLocation.Builder

This builder for chaining.

setScopeBytes(ByteString value)

public NetworkProfileLocation.Builder setScopeBytes(ByteString value)

Check the Scope enum for the list of possible values.

optional string scope = 109264468;

Parameter
Name Description
value ByteString

The bytes for scope to set.

Returns
Type Description
NetworkProfileLocation.Builder

This builder for chaining.