Class SourceCode.InlinedSource.Builder (0.103.0)

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

Inlined source.

Protobuf type google.cloud.run.v2.SourceCode.InlinedSource

Static Methods

getDescriptor()

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

Methods

addAllSources(Iterable<? extends SourceCode.SourceFile> values)

public SourceCode.InlinedSource.Builder addAllSources(Iterable<? extends SourceCode.SourceFile> values)

Required. Input only. The source code.

repeated .google.cloud.run.v2.SourceCode.SourceFile sources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.run.v2.SourceCode.SourceFile>
Returns
Type Description
SourceCode.InlinedSource.Builder

addSources(SourceCode.SourceFile value)

public SourceCode.InlinedSource.Builder addSources(SourceCode.SourceFile value)

Required. Input only. The source code.

repeated .google.cloud.run.v2.SourceCode.SourceFile sources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

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

addSources(SourceCode.SourceFile.Builder builderForValue)

public SourceCode.InlinedSource.Builder addSources(SourceCode.SourceFile.Builder builderForValue)

Required. Input only. The source code.

repeated .google.cloud.run.v2.SourceCode.SourceFile sources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

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

addSources(int index, SourceCode.SourceFile value)

public SourceCode.InlinedSource.Builder addSources(int index, SourceCode.SourceFile value)

Required. Input only. The source code.

repeated .google.cloud.run.v2.SourceCode.SourceFile sources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Parameters
Name Description
index int
value SourceCode.SourceFile
Returns
Type Description
SourceCode.InlinedSource.Builder

addSources(int index, SourceCode.SourceFile.Builder builderForValue)

public SourceCode.InlinedSource.Builder addSources(int index, SourceCode.SourceFile.Builder builderForValue)

Required. Input only. The source code.

repeated .google.cloud.run.v2.SourceCode.SourceFile sources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Parameters
Name Description
index int
builderForValue SourceCode.SourceFile.Builder
Returns
Type Description
SourceCode.InlinedSource.Builder

addSourcesBuilder()

public SourceCode.SourceFile.Builder addSourcesBuilder()

Required. Input only. The source code.

repeated .google.cloud.run.v2.SourceCode.SourceFile sources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
SourceCode.SourceFile.Builder

addSourcesBuilder(int index)

public SourceCode.SourceFile.Builder addSourcesBuilder(int index)

Required. Input only. The source code.

repeated .google.cloud.run.v2.SourceCode.SourceFile sources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
SourceCode.SourceFile.Builder

build()

public SourceCode.InlinedSource build()
Returns
Type Description
SourceCode.InlinedSource

buildPartial()

public SourceCode.InlinedSource buildPartial()
Returns
Type Description
SourceCode.InlinedSource

clear()

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

clearSources()

public SourceCode.InlinedSource.Builder clearSources()

Required. Input only. The source code.

repeated .google.cloud.run.v2.SourceCode.SourceFile sources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
SourceCode.InlinedSource.Builder

getDefaultInstanceForType()

public SourceCode.InlinedSource getDefaultInstanceForType()
Returns
Type Description
SourceCode.InlinedSource

getDescriptorForType()

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

getSources(int index)

public SourceCode.SourceFile getSources(int index)

Required. Input only. The source code.

repeated .google.cloud.run.v2.SourceCode.SourceFile sources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
SourceCode.SourceFile

getSourcesBuilder(int index)

public SourceCode.SourceFile.Builder getSourcesBuilder(int index)

Required. Input only. The source code.

repeated .google.cloud.run.v2.SourceCode.SourceFile sources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
SourceCode.SourceFile.Builder

getSourcesBuilderList()

public List<SourceCode.SourceFile.Builder> getSourcesBuilderList()

Required. Input only. The source code.

repeated .google.cloud.run.v2.SourceCode.SourceFile sources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
List<Builder>

getSourcesCount()

public int getSourcesCount()

Required. Input only. The source code.

repeated .google.cloud.run.v2.SourceCode.SourceFile sources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
int

getSourcesList()

public List<SourceCode.SourceFile> getSourcesList()

Required. Input only. The source code.

repeated .google.cloud.run.v2.SourceCode.SourceFile sources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
List<SourceFile>

getSourcesOrBuilder(int index)

public SourceCode.SourceFileOrBuilder getSourcesOrBuilder(int index)

Required. Input only. The source code.

repeated .google.cloud.run.v2.SourceCode.SourceFile sources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
SourceCode.SourceFileOrBuilder

getSourcesOrBuilderList()

public List<? extends SourceCode.SourceFileOrBuilder> getSourcesOrBuilderList()

Required. Input only. The source code.

repeated .google.cloud.run.v2.SourceCode.SourceFile sources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SourceCode.InlinedSource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeSources(int index)

public SourceCode.InlinedSource.Builder removeSources(int index)

Required. Input only. The source code.

repeated .google.cloud.run.v2.SourceCode.SourceFile sources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
SourceCode.InlinedSource.Builder

setSources(int index, SourceCode.SourceFile value)

public SourceCode.InlinedSource.Builder setSources(int index, SourceCode.SourceFile value)

Required. Input only. The source code.

repeated .google.cloud.run.v2.SourceCode.SourceFile sources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Parameters
Name Description
index int
value SourceCode.SourceFile
Returns
Type Description
SourceCode.InlinedSource.Builder

setSources(int index, SourceCode.SourceFile.Builder builderForValue)

public SourceCode.InlinedSource.Builder setSources(int index, SourceCode.SourceFile.Builder builderForValue)

Required. Input only. The source code.

repeated .google.cloud.run.v2.SourceCode.SourceFile sources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Parameters
Name Description
index int
builderForValue SourceCode.SourceFile.Builder
Returns
Type Description
SourceCode.InlinedSource.Builder