Class AutoAccept.Builder (1.54.0)

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

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;

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)

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;

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)

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;

Parameter
Name Description
value ByteString

The bytes of the autoAcceptProjects to add.

Returns
Type Description
AutoAccept.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

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;

Returns
Type Description
AutoAccept.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAutoAcceptProjects(int index)

public String getAutoAcceptProjects(int index)

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;

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)

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;

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

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;

Returns
Type Description
int

The count of autoAcceptProjects.

getAutoAcceptProjectsList()

public ProtocolStringList getAutoAcceptProjectsList()

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;

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AutoAccept.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AutoAccept.Builder
Overrides

setAutoAcceptProjects(int index, String value)

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

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;

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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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