Class InterconnectsSetNameRequest.Builder (1.109.0)

public static final class InterconnectsSetNameRequest.Builder extends GeneratedMessage.Builder<InterconnectsSetNameRequest.Builder> implements InterconnectsSetNameRequestOrBuilder

Request to rename an interconnect.

Protobuf type google.cloud.compute.v1.InterconnectsSetNameRequest

Static Methods

getDescriptor()

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

Methods

build()

public InterconnectsSetNameRequest build()
Returns
Type Description
InterconnectsSetNameRequest

buildPartial()

public InterconnectsSetNameRequest buildPartial()
Returns
Type Description
InterconnectsSetNameRequest

clear()

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

clearCurrentName()

public InterconnectsSetNameRequest.Builder clearCurrentName()

The current name of the interconnect. The name must be 1-63 characters long, and comply with RFC1035.

optional string current_name = 394983825;

Returns
Type Description
InterconnectsSetNameRequest.Builder

This builder for chaining.

clearName()

public InterconnectsSetNameRequest.Builder clearName()

The new name of the interconnect. The name must be 1-63 characters long, and comply with RFC1035.

optional string name = 3373707;

Returns
Type Description
InterconnectsSetNameRequest.Builder

This builder for chaining.

getCurrentName()

public String getCurrentName()

The current name of the interconnect. The name must be 1-63 characters long, and comply with RFC1035.

optional string current_name = 394983825;

Returns
Type Description
String

The currentName.

getCurrentNameBytes()

public ByteString getCurrentNameBytes()

The current name of the interconnect. The name must be 1-63 characters long, and comply with RFC1035.

optional string current_name = 394983825;

Returns
Type Description
ByteString

The bytes for currentName.

getDefaultInstanceForType()

public InterconnectsSetNameRequest getDefaultInstanceForType()
Returns
Type Description
InterconnectsSetNameRequest

getDescriptorForType()

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

getName()

public String getName()

The new name of the interconnect. The name must be 1-63 characters long, and comply with RFC1035.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The new name of the interconnect. The name must be 1-63 characters long, and comply with RFC1035.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

hasCurrentName()

public boolean hasCurrentName()

The current name of the interconnect. The name must be 1-63 characters long, and comply with RFC1035.

optional string current_name = 394983825;

Returns
Type Description
boolean

Whether the currentName field is set.

hasName()

public boolean hasName()

The new name of the interconnect. The name must be 1-63 characters long, and comply with RFC1035.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InterconnectsSetNameRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCurrentName(String value)

public InterconnectsSetNameRequest.Builder setCurrentName(String value)

The current name of the interconnect. The name must be 1-63 characters long, and comply with RFC1035.

optional string current_name = 394983825;

Parameter
Name Description
value String

The currentName to set.

Returns
Type Description
InterconnectsSetNameRequest.Builder

This builder for chaining.

setCurrentNameBytes(ByteString value)

public InterconnectsSetNameRequest.Builder setCurrentNameBytes(ByteString value)

The current name of the interconnect. The name must be 1-63 characters long, and comply with RFC1035.

optional string current_name = 394983825;

Parameter
Name Description
value ByteString

The bytes for currentName to set.

Returns
Type Description
InterconnectsSetNameRequest.Builder

This builder for chaining.

setName(String value)

public InterconnectsSetNameRequest.Builder setName(String value)

The new name of the interconnect. The name must be 1-63 characters long, and comply with RFC1035.

optional string name = 3373707;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
InterconnectsSetNameRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public InterconnectsSetNameRequest.Builder setNameBytes(ByteString value)

The new name of the interconnect. The name must be 1-63 characters long, and comply with RFC1035.

optional string name = 3373707;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
InterconnectsSetNameRequest.Builder

This builder for chaining.