Class Kubernetes.Binding (2.32.0)

public static final class Kubernetes.Binding extends GeneratedMessageV3 implements Kubernetes.BindingOrBuilder

Represents a Kubernetes RoleBinding or ClusterRoleBinding.

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

Static Fields

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

ROLE_FIELD_NUMBER

public static final int ROLE_FIELD_NUMBER
Field Value
TypeDescription
int

SUBJECTS_FIELD_NUMBER

public static final int SUBJECTS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(Kubernetes.Binding prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getName()

public String getName()

Name for the binding.

string name = 2;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name for the binding.

string name = 2;

Returns
TypeDescription
ByteString

The bytes for name.

getNs()

public String getNs()

Namespace for the binding.

string ns = 1;

Returns
TypeDescription
String

The ns.

getNsBytes()

public ByteString getNsBytes()

Namespace for the binding.

string ns = 1;

Returns
TypeDescription
ByteString

The bytes for ns.

getParserForType()

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

getRole()

public Kubernetes.Role getRole()

The Role or ClusterRole referenced by the binding.

.google.cloud.securitycenter.v1.Kubernetes.Role role = 3;

Returns
TypeDescription
Kubernetes.Role

The role.

getRoleOrBuilder()

public Kubernetes.RoleOrBuilder getRoleOrBuilder()

The Role or ClusterRole referenced by the binding.

.google.cloud.securitycenter.v1.Kubernetes.Role role = 3;

Returns
TypeDescription
Kubernetes.RoleOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSubjects(int index)

public Kubernetes.Subject getSubjects(int index)

Represents one or more subjects that are bound to the role. Not always available for PATCH requests.

repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Kubernetes.Subject

getSubjectsCount()

public int getSubjectsCount()

Represents one or more subjects that are bound to the role. Not always available for PATCH requests.

repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4;

Returns
TypeDescription
int

getSubjectsList()

public List<Kubernetes.Subject> getSubjectsList()

Represents one or more subjects that are bound to the role. Not always available for PATCH requests.

repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4;

Returns
TypeDescription
List<Subject>

getSubjectsOrBuilder(int index)

public Kubernetes.SubjectOrBuilder getSubjectsOrBuilder(int index)

Represents one or more subjects that are bound to the role. Not always available for PATCH requests.

repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Kubernetes.SubjectOrBuilder

getSubjectsOrBuilderList()

public List<? extends Kubernetes.SubjectOrBuilder> getSubjectsOrBuilderList()

Represents one or more subjects that are bound to the role. Not always available for PATCH requests.

repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4;

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

hasRole()

public boolean hasRole()

The Role or ClusterRole referenced by the binding.

.google.cloud.securitycenter.v1.Kubernetes.Role role = 3;

Returns
TypeDescription
boolean

Whether the role 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 Kubernetes.Binding.Builder newBuilderForType()
Returns
TypeDescription
Kubernetes.Binding.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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