Class CliConfig.Builder (0.99.0)

public static final class CliConfig.Builder extends GeneratedMessage.Builder<CliConfig.Builder> implements CliConfigOrBuilder

The configuration for the CLI execution based connectors.

Protobuf type google.cloud.discoveryengine.v1.CliConfig

Implements

CliConfigOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllEnabledActions(Iterable<String> values)

public CliConfig.Builder addAllEnabledActions(Iterable<String> values)

Optional. The actions enabled on the associated CLI connection.

repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The enabledActions to add.

Returns
Type Description
CliConfig.Builder

This builder for chaining.

addEnabledActions(String value)

public CliConfig.Builder addEnabledActions(String value)

Optional. The actions enabled on the associated CLI connection.

repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The enabledActions to add.

Returns
Type Description
CliConfig.Builder

This builder for chaining.

addEnabledActionsBytes(ByteString value)

public CliConfig.Builder addEnabledActionsBytes(ByteString value)

Optional. The actions enabled on the associated CLI connection.

repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the enabledActions to add.

Returns
Type Description
CliConfig.Builder

This builder for chaining.

build()

public CliConfig build()
Returns
Type Description
CliConfig

buildPartial()

public CliConfig buildPartial()
Returns
Type Description
CliConfig

clear()

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

clearEnabledActions()

public CliConfig.Builder clearEnabledActions()

Optional. The actions enabled on the associated CLI connection.

repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CliConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public CliConfig getDefaultInstanceForType()
Returns
Type Description
CliConfig

getDescriptorForType()

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

getEnabledActions(int index)

public String getEnabledActions(int index)

Optional. The actions enabled on the associated CLI connection.

repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The enabledActions at the given index.

getEnabledActionsBytes(int index)

public ByteString getEnabledActionsBytes(int index)

Optional. The actions enabled on the associated CLI connection.

repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the enabledActions at the given index.

getEnabledActionsCount()

public int getEnabledActionsCount()

Optional. The actions enabled on the associated CLI connection.

repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of enabledActions.

getEnabledActionsList()

public ProtocolStringList getEnabledActionsList()

Optional. The actions enabled on the associated CLI connection.

repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the enabledActions.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CliConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setEnabledActions(int index, String value)

public CliConfig.Builder setEnabledActions(int index, String value)

Optional. The actions enabled on the associated CLI connection.

repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The enabledActions to set.

Returns
Type Description
CliConfig.Builder

This builder for chaining.