Class DeploymentSource.Builder (0.68.0)

public static final class DeploymentSource.Builder extends GeneratedMessage.Builder<DeploymentSource.Builder> implements DeploymentSourceOrBuilder

Configuration for a value sourced from a Deployment.

Protobuf type google.cloud.config.v1.DeploymentSource

Static Methods

getDescriptor()

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

Methods

build()

public DeploymentSource build()
Returns
Type Description
DeploymentSource

buildPartial()

public DeploymentSource buildPartial()
Returns
Type Description
DeploymentSource

clear()

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

clearDeployment()

public DeploymentSource.Builder clearDeployment()

Required. The resource name of the source Deployment to import the output from. Format: projects/{project}/locations/{location}/deployments/{deployment} The source deployment must be in the same project and location.

string deployment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
DeploymentSource.Builder

This builder for chaining.

clearOutputName()

public DeploymentSource.Builder clearOutputName()

Required. The name of the output variable in the source deployment's latest successfully applied revision.

string output_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DeploymentSource.Builder

This builder for chaining.

getDefaultInstanceForType()

public DeploymentSource getDefaultInstanceForType()
Returns
Type Description
DeploymentSource

getDeployment()

public String getDeployment()

Required. The resource name of the source Deployment to import the output from. Format: projects/{project}/locations/{location}/deployments/{deployment} The source deployment must be in the same project and location.

string deployment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The deployment.

getDeploymentBytes()

public ByteString getDeploymentBytes()

Required. The resource name of the source Deployment to import the output from. Format: projects/{project}/locations/{location}/deployments/{deployment} The source deployment must be in the same project and location.

string deployment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for deployment.

getDescriptorForType()

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

getOutputName()

public String getOutputName()

Required. The name of the output variable in the source deployment's latest successfully applied revision.

string output_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The outputName.

getOutputNameBytes()

public ByteString getOutputNameBytes()

Required. The name of the output variable in the source deployment's latest successfully applied revision.

string output_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for outputName.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DeploymentSource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDeployment(String value)

public DeploymentSource.Builder setDeployment(String value)

Required. The resource name of the source Deployment to import the output from. Format: projects/{project}/locations/{location}/deployments/{deployment} The source deployment must be in the same project and location.

string deployment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The deployment to set.

Returns
Type Description
DeploymentSource.Builder

This builder for chaining.

setDeploymentBytes(ByteString value)

public DeploymentSource.Builder setDeploymentBytes(ByteString value)

Required. The resource name of the source Deployment to import the output from. Format: projects/{project}/locations/{location}/deployments/{deployment} The source deployment must be in the same project and location.

string deployment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for deployment to set.

Returns
Type Description
DeploymentSource.Builder

This builder for chaining.

setOutputName(String value)

public DeploymentSource.Builder setOutputName(String value)

Required. The name of the output variable in the source deployment's latest successfully applied revision.

string output_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The outputName to set.

Returns
Type Description
DeploymentSource.Builder

This builder for chaining.

setOutputNameBytes(ByteString value)

public DeploymentSource.Builder setOutputNameBytes(ByteString value)

Required. The name of the output variable in the source deployment's latest successfully applied revision.

string output_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for outputName to set.

Returns
Type Description
DeploymentSource.Builder

This builder for chaining.