Class Config.Builder (1.37.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.deploy.v1.SkaffoldVersion>
Returns
TypeDescription
Config.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Config.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueSkaffoldVersion
Returns
TypeDescription
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
NameDescription
builderForValueSkaffoldVersion.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueSkaffoldVersion
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSkaffoldVersion.Builder
Returns
TypeDescription
Config.Builder

addSupportedVersionsBuilder()

public SkaffoldVersion.Builder addSupportedVersionsBuilder()

All supported versions of Skaffold.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
SkaffoldVersion.Builder

build()

public Config build()
Returns
TypeDescription
Config

buildPartial()

public Config buildPartial()
Returns
TypeDescription
Config

clear()

public Config.Builder clear()
Returns
TypeDescription
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
TypeDescription
Config.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Config.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Config.Builder
Overrides

clearName()

public Config.Builder clearName()

Name of the configuration.

string name = 1;

Returns
TypeDescription
Config.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Config.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Config.Builder
Overrides

clearSupportedVersions()

public Config.Builder clearSupportedVersions()

All supported versions of Skaffold.

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

Returns
TypeDescription
Config.Builder

clone()

public Config.Builder clone()
Returns
TypeDescription
Config.Builder
Overrides

getDefaultInstanceForType()

public Config getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for defaultSkaffoldVersion.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Name of the configuration.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the configuration.

string name = 1;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
SkaffoldVersion.Builder

getSupportedVersionsBuilderList()

public List<SkaffoldVersion.Builder> getSupportedVersionsBuilderList()

All supported versions of Skaffold.

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

Returns
TypeDescription
List<Builder>

getSupportedVersionsCount()

public int getSupportedVersionsCount()

All supported versions of Skaffold.

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

Returns
TypeDescription
int

getSupportedVersionsList()

public List<SkaffoldVersion> getSupportedVersionsList()

All supported versions of Skaffold.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
SkaffoldVersionOrBuilder

getSupportedVersionsOrBuilderList()

public List<? extends SkaffoldVersionOrBuilder> getSupportedVersionsOrBuilderList()

All supported versions of Skaffold.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Config other)

public Config.Builder mergeFrom(Config other)
Parameter
NameDescription
otherConfig
Returns
TypeDescription
Config.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Config.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Config.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Config.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Config.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Config.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueString

The defaultSkaffoldVersion to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for defaultSkaffoldVersion to set.

Returns
TypeDescription
Config.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Config.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Config.Builder
Overrides

setName(String value)

public Config.Builder setName(String value)

Name of the configuration.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Config.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Config.Builder setNameBytes(ByteString value)

Name of the configuration.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueSkaffoldVersion
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSkaffoldVersion.Builder
Returns
TypeDescription
Config.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Config.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Config.Builder
Overrides