Class Kubernetes.Object (2.48.0)

public static final class Kubernetes.Object extends GeneratedMessageV3 implements Kubernetes.ObjectOrBuilder

Kubernetes object related to the finding, uniquely identified by GKNN. Used if the object Kind is not one of Pod, Node, NodePool, Binding, or AccessReview.

Protobuf type google.cloud.securitycenter.v2.Kubernetes.Object

Static Fields

CONTAINERS_FIELD_NUMBER

public static final int CONTAINERS_FIELD_NUMBER
Field Value
TypeDescription
int

GROUP_FIELD_NUMBER

public static final int GROUP_FIELD_NUMBER
Field Value
TypeDescription
int

KIND_FIELD_NUMBER

public static final int KIND_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

NS_FIELD_NUMBER

public static final int NS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Kubernetes.Object getDefaultInstance()
Returns
TypeDescription
Kubernetes.Object

getDescriptor()

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

newBuilder()

public static Kubernetes.Object.Builder newBuilder()
Returns
TypeDescription
Kubernetes.Object.Builder

newBuilder(Kubernetes.Object prototype)

public static Kubernetes.Object.Builder newBuilder(Kubernetes.Object prototype)
Parameter
NameDescription
prototypeKubernetes.Object
Returns
TypeDescription
Kubernetes.Object.Builder

parseDelimitedFrom(InputStream input)

public static Kubernetes.Object parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Kubernetes.Object
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Kubernetes.Object parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Kubernetes.Object
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Kubernetes.Object parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Kubernetes.Object
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Kubernetes.Object parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Kubernetes.Object
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Kubernetes.Object parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Kubernetes.Object
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Kubernetes.Object> parser()
Returns
TypeDescription
Parser<Object>

Methods

equals(Object obj)

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

getContainers(int index)

public Container getContainers(int index)

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v2.Container containers = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Container

getContainersCount()

public int getContainersCount()

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v2.Container containers = 5;

Returns
TypeDescription
int

getContainersList()

public List<Container> getContainersList()

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v2.Container containers = 5;

Returns
TypeDescription
List<Container>

getContainersOrBuilder(int index)

public ContainerOrBuilder getContainersOrBuilder(int index)

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v2.Container containers = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
ContainerOrBuilder

getContainersOrBuilderList()

public List<? extends ContainerOrBuilder> getContainersOrBuilderList()

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v2.Container containers = 5;

Returns
TypeDescription
List<? extends com.google.cloud.securitycenter.v2.ContainerOrBuilder>

getDefaultInstanceForType()

public Kubernetes.Object getDefaultInstanceForType()
Returns
TypeDescription
Kubernetes.Object

getGroup()

public String getGroup()

Kubernetes object group, such as "policy.k8s.io/v1".

string group = 1;

Returns
TypeDescription
String

The group.

getGroupBytes()

public ByteString getGroupBytes()

Kubernetes object group, such as "policy.k8s.io/v1".

string group = 1;

Returns
TypeDescription
ByteString

The bytes for group.

getKind()

public String getKind()

Kubernetes object kind, such as "Namespace".

string kind = 2;

Returns
TypeDescription
String

The kind.

getKindBytes()

public ByteString getKindBytes()

Kubernetes object kind, such as "Namespace".

string kind = 2;

Returns
TypeDescription
ByteString

The bytes for kind.

getName()

public String getName()

Kubernetes object name. For details see https://kubernetes.io/docs/concepts/overview/working-with-objects/names/.

string name = 4;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Kubernetes object name. For details see https://kubernetes.io/docs/concepts/overview/working-with-objects/names/.

string name = 4;

Returns
TypeDescription
ByteString

The bytes for name.

getNs()

public String getNs()

Kubernetes object namespace. Must be a valid DNS label. Named "ns" to avoid collision with C++ namespace keyword. For details see https://kubernetes.io/docs/tasks/administer-cluster/namespaces/.

string ns = 3;

Returns
TypeDescription
String

The ns.

getNsBytes()

public ByteString getNsBytes()

Kubernetes object namespace. Must be a valid DNS label. Named "ns" to avoid collision with C++ namespace keyword. For details see https://kubernetes.io/docs/tasks/administer-cluster/namespaces/.

string ns = 3;

Returns
TypeDescription
ByteString

The bytes for ns.

getParserForType()

public Parser<Kubernetes.Object> getParserForType()
Returns
TypeDescription
Parser<Object>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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 Kubernetes.Object.Builder newBuilderForType()
Returns
TypeDescription
Kubernetes.Object.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Kubernetes.Object.Builder toBuilder()
Returns
TypeDescription
Kubernetes.Object.Builder

writeTo(CodedOutputStream output)

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