Class UserCommands.Builder (0.62.0)

public static final class UserCommands.Builder extends GeneratedMessage.Builder<UserCommands.Builder> implements UserCommandsOrBuilder

UserCommands contains the commands to be executed by the customer.

Protobuf type google.cloud.netapp.v1.UserCommands

Static Methods

getDescriptor()

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

Methods

addAllCommands(Iterable<String> values)

public UserCommands.Builder addAllCommands(Iterable<String> values)

Output only. List of commands to be executed by the customer.

repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The commands to add.

Returns
Type Description
UserCommands.Builder

This builder for chaining.

addCommands(String value)

public UserCommands.Builder addCommands(String value)

Output only. List of commands to be executed by the customer.

repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The commands to add.

Returns
Type Description
UserCommands.Builder

This builder for chaining.

addCommandsBytes(ByteString value)

public UserCommands.Builder addCommandsBytes(ByteString value)

Output only. List of commands to be executed by the customer.

repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the commands to add.

Returns
Type Description
UserCommands.Builder

This builder for chaining.

build()

public UserCommands build()
Returns
Type Description
UserCommands

buildPartial()

public UserCommands buildPartial()
Returns
Type Description
UserCommands

clear()

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

clearCommands()

public UserCommands.Builder clearCommands()

Output only. List of commands to be executed by the customer.

repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UserCommands.Builder

This builder for chaining.

getCommands(int index)

public String getCommands(int index)

Output only. List of commands to be executed by the customer.

repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The commands at the given index.

getCommandsBytes(int index)

public ByteString getCommandsBytes(int index)

Output only. List of commands to be executed by the customer.

repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the commands at the given index.

getCommandsCount()

public int getCommandsCount()

Output only. List of commands to be executed by the customer.

repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of commands.

getCommandsList()

public ProtocolStringList getCommandsList()

Output only. List of commands to be executed by the customer.

repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the commands.

getDefaultInstanceForType()

public UserCommands getDefaultInstanceForType()
Returns
Type Description
UserCommands

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UserCommands other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCommands(int index, String value)

public UserCommands.Builder setCommands(int index, String value)

Output only. List of commands to be executed by the customer.

repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The commands to set.

Returns
Type Description
UserCommands.Builder

This builder for chaining.