Class Container.Builder (2.54.0)

public static final class Container.Builder extends GeneratedMessageV3.Builder<Container.Builder> implements ContainerOrBuilder

Container associated with the finding.

Protobuf type google.cloud.securitycenter.v1.Container

Implements

ContainerOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllLabels(Iterable<? extends Label> values)

public Container.Builder addAllLabels(Iterable<? extends Label> values)

Container labels, as provided by the container runtime.

repeated .google.cloud.securitycenter.v1.Label labels = 4;

Parameter
Name Description
values Iterable<? extends com.google.cloud.securitycenter.v1.Label>
Returns
Type Description
Container.Builder

addLabels(Label value)

public Container.Builder addLabels(Label value)

Container labels, as provided by the container runtime.

repeated .google.cloud.securitycenter.v1.Label labels = 4;

Parameter
Name Description
value Label
Returns
Type Description
Container.Builder

addLabels(Label.Builder builderForValue)

public Container.Builder addLabels(Label.Builder builderForValue)

Container labels, as provided by the container runtime.

repeated .google.cloud.securitycenter.v1.Label labels = 4;

Parameter
Name Description
builderForValue Label.Builder
Returns
Type Description
Container.Builder

addLabels(int index, Label value)

public Container.Builder addLabels(int index, Label value)

Container labels, as provided by the container runtime.

repeated .google.cloud.securitycenter.v1.Label labels = 4;

Parameters
Name Description
index int
value Label
Returns
Type Description
Container.Builder

addLabels(int index, Label.Builder builderForValue)

public Container.Builder addLabels(int index, Label.Builder builderForValue)

Container labels, as provided by the container runtime.

repeated .google.cloud.securitycenter.v1.Label labels = 4;

Parameters
Name Description
index int
builderForValue Label.Builder
Returns
Type Description
Container.Builder

addLabelsBuilder()

public Label.Builder addLabelsBuilder()

Container labels, as provided by the container runtime.

repeated .google.cloud.securitycenter.v1.Label labels = 4;

Returns
Type Description
Label.Builder

addLabelsBuilder(int index)

public Label.Builder addLabelsBuilder(int index)

Container labels, as provided by the container runtime.

repeated .google.cloud.securitycenter.v1.Label labels = 4;

Parameter
Name Description
index int
Returns
Type Description
Label.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Container build()
Returns
Type Description
Container

buildPartial()

public Container buildPartial()
Returns
Type Description
Container

clear()

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

clearCreateTime()

public Container.Builder clearCreateTime()

The time that the container was created.

.google.protobuf.Timestamp create_time = 5;

Returns
Type Description
Container.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearImageId()

public Container.Builder clearImageId()

Optional container image ID, if provided by the container runtime. Uniquely identifies the container image launched using a container image digest.

string image_id = 3;

Returns
Type Description
Container.Builder

This builder for chaining.

clearLabels()

public Container.Builder clearLabels()

Container labels, as provided by the container runtime.

repeated .google.cloud.securitycenter.v1.Label labels = 4;

Returns
Type Description
Container.Builder

clearName()

public Container.Builder clearName()

Name of the container.

string name = 1;

Returns
Type Description
Container.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUri()

public Container.Builder clearUri()

Container image URI provided when configuring a pod or container. This string can identify a container image version using mutable tags.

string uri = 2;

Returns
Type Description
Container.Builder

This builder for chaining.

clone()

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

getCreateTime()

public Timestamp getCreateTime()

The time that the container was created.

.google.protobuf.Timestamp create_time = 5;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

The time that the container was created.

.google.protobuf.Timestamp create_time = 5;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The time that the container was created.

.google.protobuf.Timestamp create_time = 5;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Container getDefaultInstanceForType()
Returns
Type Description
Container

getDescriptorForType()

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

getImageId()

public String getImageId()

Optional container image ID, if provided by the container runtime. Uniquely identifies the container image launched using a container image digest.

string image_id = 3;

Returns
Type Description
String

The imageId.

getImageIdBytes()

public ByteString getImageIdBytes()

Optional container image ID, if provided by the container runtime. Uniquely identifies the container image launched using a container image digest.

string image_id = 3;

Returns
Type Description
ByteString

The bytes for imageId.

getLabels(int index)

public Label getLabels(int index)

Container labels, as provided by the container runtime.

repeated .google.cloud.securitycenter.v1.Label labels = 4;

Parameter
Name Description
index int
Returns
Type Description
Label

getLabelsBuilder(int index)

public Label.Builder getLabelsBuilder(int index)

Container labels, as provided by the container runtime.

repeated .google.cloud.securitycenter.v1.Label labels = 4;

Parameter
Name Description
index int
Returns
Type Description
Label.Builder

getLabelsBuilderList()

public List<Label.Builder> getLabelsBuilderList()

Container labels, as provided by the container runtime.

repeated .google.cloud.securitycenter.v1.Label labels = 4;

Returns
Type Description
List<Builder>

getLabelsCount()

public int getLabelsCount()

Container labels, as provided by the container runtime.

repeated .google.cloud.securitycenter.v1.Label labels = 4;

Returns
Type Description
int

getLabelsList()

public List<Label> getLabelsList()

Container labels, as provided by the container runtime.

repeated .google.cloud.securitycenter.v1.Label labels = 4;

Returns
Type Description
List<Label>

getLabelsOrBuilder(int index)

public LabelOrBuilder getLabelsOrBuilder(int index)

Container labels, as provided by the container runtime.

repeated .google.cloud.securitycenter.v1.Label labels = 4;

Parameter
Name Description
index int
Returns
Type Description
LabelOrBuilder

getLabelsOrBuilderList()

public List<? extends LabelOrBuilder> getLabelsOrBuilderList()

Container labels, as provided by the container runtime.

repeated .google.cloud.securitycenter.v1.Label labels = 4;

Returns
Type Description
List<? extends com.google.cloud.securitycenter.v1.LabelOrBuilder>

getName()

public String getName()

Name of the container.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the container.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getUri()

public String getUri()

Container image URI provided when configuring a pod or container. This string can identify a container image version using mutable tags.

string uri = 2;

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Container image URI provided when configuring a pod or container. This string can identify a container image version using mutable tags.

string uri = 2;

Returns
Type Description
ByteString

The bytes for uri.

hasCreateTime()

public boolean hasCreateTime()

The time that the container was created.

.google.protobuf.Timestamp create_time = 5;

Returns
Type Description
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Container.Builder mergeCreateTime(Timestamp value)

The time that the container was created.

.google.protobuf.Timestamp create_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
Container.Builder

mergeFrom(Container other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeLabels(int index)

public Container.Builder removeLabels(int index)

Container labels, as provided by the container runtime.

repeated .google.cloud.securitycenter.v1.Label labels = 4;

Parameter
Name Description
index int
Returns
Type Description
Container.Builder

setCreateTime(Timestamp value)

public Container.Builder setCreateTime(Timestamp value)

The time that the container was created.

.google.protobuf.Timestamp create_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
Container.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Container.Builder setCreateTime(Timestamp.Builder builderForValue)

The time that the container was created.

.google.protobuf.Timestamp create_time = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Container.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setImageId(String value)

public Container.Builder setImageId(String value)

Optional container image ID, if provided by the container runtime. Uniquely identifies the container image launched using a container image digest.

string image_id = 3;

Parameter
Name Description
value String

The imageId to set.

Returns
Type Description
Container.Builder

This builder for chaining.

setImageIdBytes(ByteString value)

public Container.Builder setImageIdBytes(ByteString value)

Optional container image ID, if provided by the container runtime. Uniquely identifies the container image launched using a container image digest.

string image_id = 3;

Parameter
Name Description
value ByteString

The bytes for imageId to set.

Returns
Type Description
Container.Builder

This builder for chaining.

setLabels(int index, Label value)

public Container.Builder setLabels(int index, Label value)

Container labels, as provided by the container runtime.

repeated .google.cloud.securitycenter.v1.Label labels = 4;

Parameters
Name Description
index int
value Label
Returns
Type Description
Container.Builder

setLabels(int index, Label.Builder builderForValue)

public Container.Builder setLabels(int index, Label.Builder builderForValue)

Container labels, as provided by the container runtime.

repeated .google.cloud.securitycenter.v1.Label labels = 4;

Parameters
Name Description
index int
builderForValue Label.Builder
Returns
Type Description
Container.Builder

setName(String value)

public Container.Builder setName(String value)

Name of the container.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Container.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Container.Builder setNameBytes(ByteString value)

Name of the container.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Container.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public Container.Builder setUri(String value)

Container image URI provided when configuring a pod or container. This string can identify a container image version using mutable tags.

string uri = 2;

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
Container.Builder

This builder for chaining.

setUriBytes(ByteString value)

public Container.Builder setUriBytes(ByteString value)

Container image URI provided when configuring a pod or container. This string can identify a container image version using mutable tags.

string uri = 2;

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
Container.Builder

This builder for chaining.