Class Config.Builder (1.49.0)

public static final class Config.Builder extends GeneratedMessageV3.Builder<Config.Builder> implements ConfigOrBuilder

Service-wide configuration.

Protobuf type google.cloud.deploy.v1.Config

Implements

ConfigOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllSupportedVersions(Iterable<? extends SkaffoldVersion> values)

public Config.Builder addAllSupportedVersions(Iterable<? extends SkaffoldVersion> values)

All supported versions of Skaffold.

repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.deploy.v1.SkaffoldVersion>
Returns
Type Description
Config.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSupportedVersions(SkaffoldVersion value)

public Config.Builder addSupportedVersions(SkaffoldVersion value)

All supported versions of Skaffold.

repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2;

Parameter
Name Description
value SkaffoldVersion
Returns
Type Description
Config.Builder

addSupportedVersions(SkaffoldVersion.Builder builderForValue)

public Config.Builder addSupportedVersions(SkaffoldVersion.Builder builderForValue)

All supported versions of Skaffold.

repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2;

Parameter
Name Description
builderForValue SkaffoldVersion.Builder
Returns
Type Description
Config.Builder

addSupportedVersions(int index, SkaffoldVersion value)

public Config.Builder addSupportedVersions(int index, SkaffoldVersion value)

All supported versions of Skaffold.

repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2;

Parameters
Name Description
index int
value SkaffoldVersion
Returns
Type Description
Config.Builder

addSupportedVersions(int index, SkaffoldVersion.Builder builderForValue)

public Config.Builder addSupportedVersions(int index, SkaffoldVersion.Builder builderForValue)

All supported versions of Skaffold.

repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2;

Parameters
Name Description
index int
builderForValue SkaffoldVersion.Builder
Returns
Type Description
Config.Builder

addSupportedVersionsBuilder()

public SkaffoldVersion.Builder addSupportedVersionsBuilder()

All supported versions of Skaffold.

repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2;

Returns
Type Description
SkaffoldVersion.Builder

addSupportedVersionsBuilder(int index)

public SkaffoldVersion.Builder addSupportedVersionsBuilder(int index)

All supported versions of Skaffold.

repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2;

Parameter
Name Description
index int
Returns
Type Description
SkaffoldVersion.Builder

build()

public Config build()
Returns
Type Description
Config

buildPartial()

public Config buildPartial()
Returns
Type Description
Config

clear()

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

clearDefaultSkaffoldVersion()

public Config.Builder clearDefaultSkaffoldVersion()

Default Skaffold version that is assigned when a Release is created without specifying a Skaffold version.

string default_skaffold_version = 3;

Returns
Type Description
Config.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Config.Builder clearName()

Name of the configuration.

string name = 1;

Returns
Type Description
Config.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSupportedVersions()

public Config.Builder clearSupportedVersions()

All supported versions of Skaffold.

repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2;

Returns
Type Description
Config.Builder

clone()

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

getDefaultInstanceForType()

public Config getDefaultInstanceForType()
Returns
Type Description
Config

getDefaultSkaffoldVersion()

public String getDefaultSkaffoldVersion()

Default Skaffold version that is assigned when a Release is created without specifying a Skaffold version.

string default_skaffold_version = 3;

Returns
Type Description
String

The defaultSkaffoldVersion.

getDefaultSkaffoldVersionBytes()

public ByteString getDefaultSkaffoldVersionBytes()

Default Skaffold version that is assigned when a Release is created without specifying a Skaffold version.

string default_skaffold_version = 3;

Returns
Type Description
ByteString

The bytes for defaultSkaffoldVersion.

getDescriptorForType()

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

getName()

public String getName()

Name of the configuration.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the configuration.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getSupportedVersions(int index)

public SkaffoldVersion getSupportedVersions(int index)

All supported versions of Skaffold.

repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2;

Parameter
Name Description
index int
Returns
Type Description
SkaffoldVersion

getSupportedVersionsBuilder(int index)

public SkaffoldVersion.Builder getSupportedVersionsBuilder(int index)

All supported versions of Skaffold.

repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2;

Parameter
Name Description
index int
Returns
Type Description
SkaffoldVersion.Builder

getSupportedVersionsBuilderList()

public List<SkaffoldVersion.Builder> getSupportedVersionsBuilderList()

All supported versions of Skaffold.

repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2;

Returns
Type Description
List<Builder>

getSupportedVersionsCount()

public int getSupportedVersionsCount()

All supported versions of Skaffold.

repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2;

Returns
Type Description
int

getSupportedVersionsList()

public List<SkaffoldVersion> getSupportedVersionsList()

All supported versions of Skaffold.

repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2;

Returns
Type Description
List<SkaffoldVersion>

getSupportedVersionsOrBuilder(int index)

public SkaffoldVersionOrBuilder getSupportedVersionsOrBuilder(int index)

All supported versions of Skaffold.

repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2;

Parameter
Name Description
index int
Returns
Type Description
SkaffoldVersionOrBuilder

getSupportedVersionsOrBuilderList()

public List<? extends SkaffoldVersionOrBuilder> getSupportedVersionsOrBuilderList()

All supported versions of Skaffold.

repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2;

Returns
Type Description
List<? extends com.google.cloud.deploy.v1.SkaffoldVersionOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Config other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSupportedVersions(int index)

public Config.Builder removeSupportedVersions(int index)

All supported versions of Skaffold.

repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2;

Parameter
Name Description
index int
Returns
Type Description
Config.Builder

setDefaultSkaffoldVersion(String value)

public Config.Builder setDefaultSkaffoldVersion(String value)

Default Skaffold version that is assigned when a Release is created without specifying a Skaffold version.

string default_skaffold_version = 3;

Parameter
Name Description
value String

The defaultSkaffoldVersion to set.

Returns
Type Description
Config.Builder

This builder for chaining.

setDefaultSkaffoldVersionBytes(ByteString value)

public Config.Builder setDefaultSkaffoldVersionBytes(ByteString value)

Default Skaffold version that is assigned when a Release is created without specifying a Skaffold version.

string default_skaffold_version = 3;

Parameter
Name Description
value ByteString

The bytes for defaultSkaffoldVersion to set.

Returns
Type Description
Config.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Config.Builder setName(String value)

Name of the configuration.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Config.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Config.Builder setNameBytes(ByteString value)

Name of the configuration.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Config.Builder

This builder for chaining.

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

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

setSupportedVersions(int index, SkaffoldVersion value)

public Config.Builder setSupportedVersions(int index, SkaffoldVersion value)

All supported versions of Skaffold.

repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2;

Parameters
Name Description
index int
value SkaffoldVersion
Returns
Type Description
Config.Builder

setSupportedVersions(int index, SkaffoldVersion.Builder builderForValue)

public Config.Builder setSupportedVersions(int index, SkaffoldVersion.Builder builderForValue)

All supported versions of Skaffold.

repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2;

Parameters
Name Description
index int
builderForValue SkaffoldVersion.Builder
Returns
Type Description
Config.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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