Class NetworkProfileLocation.Builder (1.65.0)

public static final class NetworkProfileLocation.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public NetworkProfileLocation.Builder clearName()

optional string name = 3373707;

Returns
Type Description
NetworkProfileLocation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public NetworkProfileLocation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

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.

setUnknownFields(UnknownFieldSet unknownFields)

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