Class AutoAccept.Builder (1.82.0)

public static final class AutoAccept.Builder extends GeneratedMessage.Builder<AutoAccept.Builder> implements AutoAcceptOrBuilder

The auto-accept setting for a group controls whether proposed spokes are automatically attached to the hub. If auto-accept is enabled, the spoke immediately is attached to the hub and becomes part of the group. In this case, the new spoke is in the ACTIVE state. If auto-accept is disabled, the spoke goes to the INACTIVE state, and it must be reviewed and accepted by a hub administrator.

Protobuf type google.cloud.networkconnectivity.v1.AutoAccept

Implements

AutoAcceptOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllAutoAcceptProjects(Iterable<String> values)

public AutoAccept.Builder addAllAutoAcceptProjects(Iterable<String> values)

Optional. A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.

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

Parameter
Name Description
values Iterable<String>

The autoAcceptProjects to add.

Returns
Type Description
AutoAccept.Builder

This builder for chaining.

addAutoAcceptProjects(String value)

public AutoAccept.Builder addAutoAcceptProjects(String value)

Optional. A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.

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

Parameter
Name Description
value String

The autoAcceptProjects to add.

Returns
Type Description
AutoAccept.Builder

This builder for chaining.

addAutoAcceptProjectsBytes(ByteString value)

public AutoAccept.Builder addAutoAcceptProjectsBytes(ByteString value)

Optional. A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.

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

Parameter
Name Description
value ByteString

The bytes of the autoAcceptProjects to add.

Returns
Type Description
AutoAccept.Builder

This builder for chaining.

build()

public AutoAccept build()
Returns
Type Description
AutoAccept

buildPartial()

public AutoAccept buildPartial()
Returns
Type Description
AutoAccept

clear()

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

clearAutoAcceptProjects()

public AutoAccept.Builder clearAutoAcceptProjects()

Optional. A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.

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

Returns
Type Description
AutoAccept.Builder

This builder for chaining.

getAutoAcceptProjects(int index)

public String getAutoAcceptProjects(int index)

Optional. A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The autoAcceptProjects at the given index.

getAutoAcceptProjectsBytes(int index)

public ByteString getAutoAcceptProjectsBytes(int index)

Optional. A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.

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

getAutoAcceptProjectsCount()

public int getAutoAcceptProjectsCount()

Optional. A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.

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

Returns
Type Description
int

The count of autoAcceptProjects.

getAutoAcceptProjectsList()

public ProtocolStringList getAutoAcceptProjectsList()

Optional. A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.

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

Returns
Type Description
ProtocolStringList

A list containing the autoAcceptProjects.

getDefaultInstanceForType()

public AutoAccept getDefaultInstanceForType()
Returns
Type Description
AutoAccept

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(AutoAccept other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAutoAcceptProjects(int index, String value)

public AutoAccept.Builder setAutoAcceptProjects(int index, String value)

Optional. A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.

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

Parameters
Name Description
index int

The index to set the value at.

value String

The autoAcceptProjects to set.

Returns
Type Description
AutoAccept.Builder

This builder for chaining.