Class Container (2.47.0)

public final class Container extends GeneratedMessageV3 implements ContainerOrBuilder

Container associated with the finding.

Protobuf type google.cloud.securitycenter.v1.Container

Implements

ContainerOrBuilder

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

IMAGE_ID_FIELD_NUMBER

public static final int IMAGE_ID_FIELD_NUMBER
Field Value
TypeDescription
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

URI_FIELD_NUMBER

public static final int URI_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Container getDefaultInstance()
Returns
TypeDescription
Container

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Container.Builder newBuilder()
Returns
TypeDescription
Container.Builder

newBuilder(Container prototype)

public static Container.Builder newBuilder(Container prototype)
Parameter
NameDescription
prototypeContainer
Returns
TypeDescription
Container.Builder

parseDelimitedFrom(InputStream input)

public static Container parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Container
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Container parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Container
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Container parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Container
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Container parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Container
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Container parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Container
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Container parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Container
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Container parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Container
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Container parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Container
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Container parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Container
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Container parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Container
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Container parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Container
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Container parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Container
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Container> parser()
Returns
TypeDescription
Parser<Container>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCreateTime()

public Timestamp getCreateTime()

The time that the container was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The time that the container was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Container getDefaultInstanceForType()
Returns
TypeDescription
Container

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

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.

getParserForType()

public Parser<Container> getParserForType()
Returns
TypeDescription
Parser<Container>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hasCreateTime()

public boolean hasCreateTime()

The time that the container was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Container.Builder newBuilderForType()
Returns
TypeDescription
Container.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Container.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Container.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Container.Builder toBuilder()
Returns
TypeDescription
Container.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException