Class Kubernetes.Role (2.27.0)

public static final class Kubernetes.Role extends GeneratedMessageV3 implements Kubernetes.RoleOrBuilder

Kubernetes Role or ClusterRole.

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

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

getDescriptor()

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

newBuilder()

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

newBuilder(Kubernetes.Role prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getKind()

public Kubernetes.Role.Kind getKind()

Role type.

.google.cloud.securitycenter.v1.Kubernetes.Role.Kind kind = 1;

Returns
TypeDescription
Kubernetes.Role.Kind

The kind.

getKindValue()

public int getKindValue()

Role type.

.google.cloud.securitycenter.v1.Kubernetes.Role.Kind kind = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for kind.

getName()

public String getName()

Role name.

string name = 3;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Role name.

string name = 3;

Returns
TypeDescription
ByteString

The bytes for name.

getNs()

public String getNs()

Role namespace.

string ns = 2;

Returns
TypeDescription
String

The ns.

getNsBytes()

public ByteString getNsBytes()

Role namespace.

string ns = 2;

Returns
TypeDescription
ByteString

The bytes for ns.

getParserForType()

public Parser<Kubernetes.Role> getParserForType()
Returns
TypeDescription
Parser<Role>
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.Role.Builder newBuilderForType()
Returns
TypeDescription
Kubernetes.Role.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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