Class ActionConfig.ScopeList.Builder (0.99.0)

public static final class ActionConfig.ScopeList.Builder extends GeneratedMessage.Builder<ActionConfig.ScopeList.Builder> implements ActionConfig.ScopeListOrBuilder

Stores a list of scopes.

Protobuf type google.cloud.discoveryengine.v1.ActionConfig.ScopeList

Static Methods

getDescriptor()

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

Methods

addAllScopes(Iterable<String> values)

public ActionConfig.ScopeList.Builder addAllScopes(Iterable<String> values)

Optional. The list of scopes.

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

Parameter
Name Description
values Iterable<String>

The scopes to add.

Returns
Type Description
ActionConfig.ScopeList.Builder

This builder for chaining.

addScopes(String value)

public ActionConfig.ScopeList.Builder addScopes(String value)

Optional. The list of scopes.

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

Parameter
Name Description
value String

The scopes to add.

Returns
Type Description
ActionConfig.ScopeList.Builder

This builder for chaining.

addScopesBytes(ByteString value)

public ActionConfig.ScopeList.Builder addScopesBytes(ByteString value)

Optional. The list of scopes.

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

Parameter
Name Description
value ByteString

The bytes of the scopes to add.

Returns
Type Description
ActionConfig.ScopeList.Builder

This builder for chaining.

build()

public ActionConfig.ScopeList build()
Returns
Type Description
ActionConfig.ScopeList

buildPartial()

public ActionConfig.ScopeList buildPartial()
Returns
Type Description
ActionConfig.ScopeList

clear()

public ActionConfig.ScopeList.Builder clear()
Returns
Type Description
ActionConfig.ScopeList.Builder
Overrides

clearScopes()

public ActionConfig.ScopeList.Builder clearScopes()

Optional. The list of scopes.

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

Returns
Type Description
ActionConfig.ScopeList.Builder

This builder for chaining.

getDefaultInstanceForType()

public ActionConfig.ScopeList getDefaultInstanceForType()
Returns
Type Description
ActionConfig.ScopeList

getDescriptorForType()

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

getScopes(int index)

public String getScopes(int index)

Optional. The list of scopes.

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The scopes at the given index.

getScopesBytes(int index)

public ByteString getScopesBytes(int index)

Optional. The list of scopes.

repeated string scopes = 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 scopes at the given index.

getScopesCount()

public int getScopesCount()

Optional. The list of scopes.

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

Returns
Type Description
int

The count of scopes.

getScopesList()

public ProtocolStringList getScopesList()

Optional. The list of scopes.

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

Returns
Type Description
ProtocolStringList

A list containing the scopes.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ActionConfig.ScopeList other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setScopes(int index, String value)

public ActionConfig.ScopeList.Builder setScopes(int index, String value)

Optional. The list of scopes.

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

Parameters
Name Description
index int

The index to set the value at.

value String

The scopes to set.

Returns
Type Description
ActionConfig.ScopeList.Builder

This builder for chaining.