Class UserCommands.Builder (0.53.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UserCommands.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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