Class SandboxConfiguration.Builder (0.103.0)

public static final class SandboxConfiguration.Builder extends GeneratedMessage.Builder<SandboxConfiguration.Builder> implements SandboxConfigurationOrBuilder

Configuration for sandboxes.

Protobuf type google.cloud.run.v2.SandboxConfiguration

Static Methods

getDescriptor()

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

Methods

addAllTemplates(Iterable<? extends SandboxTemplate> values)

public SandboxConfiguration.Builder addAllTemplates(Iterable<? extends SandboxTemplate> values)

Required. Sandbox templates that can be launched through the sandbox CLI.

repeated .google.cloud.run.v2.SandboxTemplate templates = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.run.v2.SandboxTemplate>
Returns
Type Description
SandboxConfiguration.Builder

addTemplates(SandboxTemplate value)

public SandboxConfiguration.Builder addTemplates(SandboxTemplate value)

Required. Sandbox templates that can be launched through the sandbox CLI.

repeated .google.cloud.run.v2.SandboxTemplate templates = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SandboxTemplate
Returns
Type Description
SandboxConfiguration.Builder

addTemplates(SandboxTemplate.Builder builderForValue)

public SandboxConfiguration.Builder addTemplates(SandboxTemplate.Builder builderForValue)

Required. Sandbox templates that can be launched through the sandbox CLI.

repeated .google.cloud.run.v2.SandboxTemplate templates = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue SandboxTemplate.Builder
Returns
Type Description
SandboxConfiguration.Builder

addTemplates(int index, SandboxTemplate value)

public SandboxConfiguration.Builder addTemplates(int index, SandboxTemplate value)

Required. Sandbox templates that can be launched through the sandbox CLI.

repeated .google.cloud.run.v2.SandboxTemplate templates = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value SandboxTemplate
Returns
Type Description
SandboxConfiguration.Builder

addTemplates(int index, SandboxTemplate.Builder builderForValue)

public SandboxConfiguration.Builder addTemplates(int index, SandboxTemplate.Builder builderForValue)

Required. Sandbox templates that can be launched through the sandbox CLI.

repeated .google.cloud.run.v2.SandboxTemplate templates = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue SandboxTemplate.Builder
Returns
Type Description
SandboxConfiguration.Builder

addTemplatesBuilder()

public SandboxTemplate.Builder addTemplatesBuilder()

Required. Sandbox templates that can be launched through the sandbox CLI.

repeated .google.cloud.run.v2.SandboxTemplate templates = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SandboxTemplate.Builder

addTemplatesBuilder(int index)

public SandboxTemplate.Builder addTemplatesBuilder(int index)

Required. Sandbox templates that can be launched through the sandbox CLI.

repeated .google.cloud.run.v2.SandboxTemplate templates = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
SandboxTemplate.Builder

build()

public SandboxConfiguration build()
Returns
Type Description
SandboxConfiguration

buildPartial()

public SandboxConfiguration buildPartial()
Returns
Type Description
SandboxConfiguration

clear()

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

clearTemplates()

public SandboxConfiguration.Builder clearTemplates()

Required. Sandbox templates that can be launched through the sandbox CLI.

repeated .google.cloud.run.v2.SandboxTemplate templates = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SandboxConfiguration.Builder

getDefaultInstanceForType()

public SandboxConfiguration getDefaultInstanceForType()
Returns
Type Description
SandboxConfiguration

getDescriptorForType()

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

getTemplates(int index)

public SandboxTemplate getTemplates(int index)

Required. Sandbox templates that can be launched through the sandbox CLI.

repeated .google.cloud.run.v2.SandboxTemplate templates = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
SandboxTemplate

getTemplatesBuilder(int index)

public SandboxTemplate.Builder getTemplatesBuilder(int index)

Required. Sandbox templates that can be launched through the sandbox CLI.

repeated .google.cloud.run.v2.SandboxTemplate templates = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
SandboxTemplate.Builder

getTemplatesBuilderList()

public List<SandboxTemplate.Builder> getTemplatesBuilderList()

Required. Sandbox templates that can be launched through the sandbox CLI.

repeated .google.cloud.run.v2.SandboxTemplate templates = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getTemplatesCount()

public int getTemplatesCount()

Required. Sandbox templates that can be launched through the sandbox CLI.

repeated .google.cloud.run.v2.SandboxTemplate templates = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getTemplatesList()

public List<SandboxTemplate> getTemplatesList()

Required. Sandbox templates that can be launched through the sandbox CLI.

repeated .google.cloud.run.v2.SandboxTemplate templates = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<SandboxTemplate>

getTemplatesOrBuilder(int index)

public SandboxTemplateOrBuilder getTemplatesOrBuilder(int index)

Required. Sandbox templates that can be launched through the sandbox CLI.

repeated .google.cloud.run.v2.SandboxTemplate templates = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
SandboxTemplateOrBuilder

getTemplatesOrBuilderList()

public List<? extends SandboxTemplateOrBuilder> getTemplatesOrBuilderList()

Required. Sandbox templates that can be launched through the sandbox CLI.

repeated .google.cloud.run.v2.SandboxTemplate templates = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.run.v2.SandboxTemplateOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SandboxConfiguration other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeTemplates(int index)

public SandboxConfiguration.Builder removeTemplates(int index)

Required. Sandbox templates that can be launched through the sandbox CLI.

repeated .google.cloud.run.v2.SandboxTemplate templates = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
SandboxConfiguration.Builder

setTemplates(int index, SandboxTemplate value)

public SandboxConfiguration.Builder setTemplates(int index, SandboxTemplate value)

Required. Sandbox templates that can be launched through the sandbox CLI.

repeated .google.cloud.run.v2.SandboxTemplate templates = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value SandboxTemplate
Returns
Type Description
SandboxConfiguration.Builder

setTemplates(int index, SandboxTemplate.Builder builderForValue)

public SandboxConfiguration.Builder setTemplates(int index, SandboxTemplate.Builder builderForValue)

Required. Sandbox templates that can be launched through the sandbox CLI.

repeated .google.cloud.run.v2.SandboxTemplate templates = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue SandboxTemplate.Builder
Returns
Type Description
SandboxConfiguration.Builder