Class SourceCode.Builder (0.103.0)

public static final class SourceCode.Builder extends GeneratedMessage.Builder<SourceCode.Builder> implements SourceCodeOrBuilder

Source type for the container.

Protobuf type google.cloud.run.v2.SourceCode

Implements

SourceCodeOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public SourceCode build()
Returns
Type Description
SourceCode

buildPartial()

public SourceCode buildPartial()
Returns
Type Description
SourceCode

clear()

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

clearCloudStorageSource()

public SourceCode.Builder clearCloudStorageSource()

The source is a Cloud Storage bucket.

.google.cloud.run.v2.SourceCode.CloudStorageSource cloud_storage_source = 1;

Returns
Type Description
SourceCode.Builder

clearInlinedSource()

public SourceCode.Builder clearInlinedSource()

Optional. Input only. Source code inlined in the request. Cloud Run will store the inlined_source to Cloud Storage and replace the field with cloud_storage_source. This field is only supported in Cloud Run Service.

.google.cloud.run.v2.SourceCode.InlinedSource inlined_source = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
SourceCode.Builder

clearSourceType()

public SourceCode.Builder clearSourceType()
Returns
Type Description
SourceCode.Builder

getCloudStorageSource()

public SourceCode.CloudStorageSource getCloudStorageSource()

The source is a Cloud Storage bucket.

.google.cloud.run.v2.SourceCode.CloudStorageSource cloud_storage_source = 1;

Returns
Type Description
SourceCode.CloudStorageSource

The cloudStorageSource.

getCloudStorageSourceBuilder()

public SourceCode.CloudStorageSource.Builder getCloudStorageSourceBuilder()

The source is a Cloud Storage bucket.

.google.cloud.run.v2.SourceCode.CloudStorageSource cloud_storage_source = 1;

Returns
Type Description
SourceCode.CloudStorageSource.Builder

getCloudStorageSourceOrBuilder()

public SourceCode.CloudStorageSourceOrBuilder getCloudStorageSourceOrBuilder()

The source is a Cloud Storage bucket.

.google.cloud.run.v2.SourceCode.CloudStorageSource cloud_storage_source = 1;

Returns
Type Description
SourceCode.CloudStorageSourceOrBuilder

getDefaultInstanceForType()

public SourceCode getDefaultInstanceForType()
Returns
Type Description
SourceCode

getDescriptorForType()

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

getInlinedSource()

public SourceCode.InlinedSource getInlinedSource()

Optional. Input only. Source code inlined in the request. Cloud Run will store the inlined_source to Cloud Storage and replace the field with cloud_storage_source. This field is only supported in Cloud Run Service.

.google.cloud.run.v2.SourceCode.InlinedSource inlined_source = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
SourceCode.InlinedSource

The inlinedSource.

getInlinedSourceBuilder()

public SourceCode.InlinedSource.Builder getInlinedSourceBuilder()

Optional. Input only. Source code inlined in the request. Cloud Run will store the inlined_source to Cloud Storage and replace the field with cloud_storage_source. This field is only supported in Cloud Run Service.

.google.cloud.run.v2.SourceCode.InlinedSource inlined_source = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
SourceCode.InlinedSource.Builder

getInlinedSourceOrBuilder()

public SourceCode.InlinedSourceOrBuilder getInlinedSourceOrBuilder()

Optional. Input only. Source code inlined in the request. Cloud Run will store the inlined_source to Cloud Storage and replace the field with cloud_storage_source. This field is only supported in Cloud Run Service.

.google.cloud.run.v2.SourceCode.InlinedSource inlined_source = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
SourceCode.InlinedSourceOrBuilder

getSourceTypeCase()

public SourceCode.SourceTypeCase getSourceTypeCase()
Returns
Type Description
SourceCode.SourceTypeCase

hasCloudStorageSource()

public boolean hasCloudStorageSource()

The source is a Cloud Storage bucket.

.google.cloud.run.v2.SourceCode.CloudStorageSource cloud_storage_source = 1;

Returns
Type Description
boolean

Whether the cloudStorageSource field is set.

hasInlinedSource()

public boolean hasInlinedSource()

Optional. Input only. Source code inlined in the request. Cloud Run will store the inlined_source to Cloud Storage and replace the field with cloud_storage_source. This field is only supported in Cloud Run Service.

.google.cloud.run.v2.SourceCode.InlinedSource inlined_source = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
boolean

Whether the inlinedSource field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCloudStorageSource(SourceCode.CloudStorageSource value)

public SourceCode.Builder mergeCloudStorageSource(SourceCode.CloudStorageSource value)

The source is a Cloud Storage bucket.

.google.cloud.run.v2.SourceCode.CloudStorageSource cloud_storage_source = 1;

Parameter
Name Description
value SourceCode.CloudStorageSource
Returns
Type Description
SourceCode.Builder

mergeFrom(SourceCode other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInlinedSource(SourceCode.InlinedSource value)

public SourceCode.Builder mergeInlinedSource(SourceCode.InlinedSource value)

Optional. Input only. Source code inlined in the request. Cloud Run will store the inlined_source to Cloud Storage and replace the field with cloud_storage_source. This field is only supported in Cloud Run Service.

.google.cloud.run.v2.SourceCode.InlinedSource inlined_source = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value SourceCode.InlinedSource
Returns
Type Description
SourceCode.Builder

setCloudStorageSource(SourceCode.CloudStorageSource value)

public SourceCode.Builder setCloudStorageSource(SourceCode.CloudStorageSource value)

The source is a Cloud Storage bucket.

.google.cloud.run.v2.SourceCode.CloudStorageSource cloud_storage_source = 1;

Parameter
Name Description
value SourceCode.CloudStorageSource
Returns
Type Description
SourceCode.Builder

setCloudStorageSource(SourceCode.CloudStorageSource.Builder builderForValue)

public SourceCode.Builder setCloudStorageSource(SourceCode.CloudStorageSource.Builder builderForValue)

The source is a Cloud Storage bucket.

.google.cloud.run.v2.SourceCode.CloudStorageSource cloud_storage_source = 1;

Parameter
Name Description
builderForValue SourceCode.CloudStorageSource.Builder
Returns
Type Description
SourceCode.Builder

setInlinedSource(SourceCode.InlinedSource value)

public SourceCode.Builder setInlinedSource(SourceCode.InlinedSource value)

Optional. Input only. Source code inlined in the request. Cloud Run will store the inlined_source to Cloud Storage and replace the field with cloud_storage_source. This field is only supported in Cloud Run Service.

.google.cloud.run.v2.SourceCode.InlinedSource inlined_source = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value SourceCode.InlinedSource
Returns
Type Description
SourceCode.Builder

setInlinedSource(SourceCode.InlinedSource.Builder builderForValue)

public SourceCode.Builder setInlinedSource(SourceCode.InlinedSource.Builder builderForValue)

Optional. Input only. Source code inlined in the request. Cloud Run will store the inlined_source to Cloud Storage and replace the field with cloud_storage_source. This field is only supported in Cloud Run Service.

.google.cloud.run.v2.SourceCode.InlinedSource inlined_source = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
builderForValue SourceCode.InlinedSource.Builder
Returns
Type Description
SourceCode.Builder