Class Container.Builder (2.38.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.securitycenter.v1.Label>
Returns
TypeDescription
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
NameDescription
valueLabel
Returns
TypeDescription
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
NameDescription
builderForValueLabel.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueLabel
Returns
TypeDescription
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
NameDescription
indexint
builderForValueLabel.Builder
Returns
TypeDescription
Container.Builder

addLabelsBuilder()

public Label.Builder addLabelsBuilder()

Container labels, as provided by the container runtime.

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Container build()
Returns
TypeDescription
Container

buildPartial()

public Container buildPartial()
Returns
TypeDescription
Container

clear()

public Container.Builder clear()
Returns
TypeDescription
Container.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Container.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Container.Builder

clearName()

public Container.Builder clearName()

Name of the container.

string name = 1;

Returns
TypeDescription
Container.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Container.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Container.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Container getDefaultInstanceForType()
Returns
TypeDescription
Container

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getLabelsCount()

public int getLabelsCount()

Container labels, as provided by the container runtime.

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

Returns
TypeDescription
int

getLabelsList()

public List<Label> getLabelsList()

Container labels, as provided by the container runtime.

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

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

getLabelsOrBuilderList()

public List<? extends LabelOrBuilder> getLabelsOrBuilderList()

Container labels, as provided by the container runtime.

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

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

getName()

public String getName()

Name of the container.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the container.

string name = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Container other)

public Container.Builder mergeFrom(Container other)
Parameter
NameDescription
otherContainer
Returns
TypeDescription
Container.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public Container.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The imageId to set.

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

The bytes for imageId to set.

Returns
TypeDescription
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
NameDescription
indexint
valueLabel
Returns
TypeDescription
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
NameDescription
indexint
builderForValueLabel.Builder
Returns
TypeDescription
Container.Builder

setName(String value)

public Container.Builder setName(String value)

Name of the container.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Container.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Container.Builder setNameBytes(ByteString value)

Name of the container.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Container.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

The uri to set.

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

The bytes for uri to set.

Returns
TypeDescription
Container.Builder

This builder for chaining.