Class Kubernetes.Subject (2.9.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class Kubernetes.Subject extends GeneratedMessageV3 implements Kubernetes.SubjectOrBuilder

Represents a Kubernetes Subject.

Protobuf type google.cloud.securitycenter.v1.Kubernetes.Subject

Static Fields

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.Subject getDefaultInstance()
Returns
TypeDescription
Kubernetes.Subject

getDescriptor()

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

newBuilder()

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

newBuilder(Kubernetes.Subject prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getKind()

public Kubernetes.Subject.AuthType getKind()

Authentication type for subject.

.google.cloud.securitycenter.v1.Kubernetes.Subject.AuthType kind = 1;

Returns
TypeDescription
Kubernetes.Subject.AuthType

The kind.

getKindValue()

public int getKindValue()

Authentication type for subject.

.google.cloud.securitycenter.v1.Kubernetes.Subject.AuthType kind = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for kind.

getName()

public String getName()

Name for subject.

string name = 3;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name for subject.

string name = 3;

Returns
TypeDescription
ByteString

The bytes for name.

getNs()

public String getNs()

Namespace for subject.

string ns = 2;

Returns
TypeDescription
String

The ns.

getNsBytes()

public ByteString getNsBytes()

Namespace for subject.

string ns = 2;

Returns
TypeDescription
ByteString

The bytes for ns.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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.Subject.Builder newBuilderForType()
Returns
TypeDescription
Kubernetes.Subject.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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