Class GroupVersionKind (1.53.0)

public final class GroupVersionKind extends GeneratedMessageV3 implements GroupVersionKindOrBuilder

A Kubernetes object's GVK

Protobuf type google.cloud.gkehub.configmanagement.v1.GroupVersionKind

Static Fields

GROUP_FIELD_NUMBER

public static final int GROUP_FIELD_NUMBER
Field Value
Type Description
int

KIND_FIELD_NUMBER

public static final int KIND_FIELD_NUMBER
Field Value
Type Description
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GroupVersionKind getDefaultInstance()
Returns
Type Description
GroupVersionKind

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static GroupVersionKind.Builder newBuilder()
Returns
Type Description
GroupVersionKind.Builder

newBuilder(GroupVersionKind prototype)

public static GroupVersionKind.Builder newBuilder(GroupVersionKind prototype)
Parameter
Name Description
prototype GroupVersionKind
Returns
Type Description
GroupVersionKind.Builder

parseDelimitedFrom(InputStream input)

public static GroupVersionKind parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GroupVersionKind
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GroupVersionKind parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GroupVersionKind
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static GroupVersionKind parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
GroupVersionKind
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GroupVersionKind parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GroupVersionKind
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GroupVersionKind parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
GroupVersionKind
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GroupVersionKind parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GroupVersionKind
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GroupVersionKind parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GroupVersionKind
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GroupVersionKind parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GroupVersionKind
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static GroupVersionKind parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GroupVersionKind
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GroupVersionKind parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GroupVersionKind
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static GroupVersionKind parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GroupVersionKind
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GroupVersionKind parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GroupVersionKind
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<GroupVersionKind> parser()
Returns
Type Description
Parser<GroupVersionKind>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public GroupVersionKind getDefaultInstanceForType()
Returns
Type Description
GroupVersionKind

getGroup()

public String getGroup()

Kubernetes Group

string group = 1;

Returns
Type Description
String

The group.

getGroupBytes()

public ByteString getGroupBytes()

Kubernetes Group

string group = 1;

Returns
Type Description
ByteString

The bytes for group.

getKind()

public String getKind()

Kubernetes Kind

string kind = 3;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

Kubernetes Kind

string kind = 3;

Returns
Type Description
ByteString

The bytes for kind.

getParserForType()

public Parser<GroupVersionKind> getParserForType()
Returns
Type Description
Parser<GroupVersionKind>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getVersion()

public String getVersion()

Kubernetes Version

string version = 2;

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Kubernetes Version

string version = 2;

Returns
Type Description
ByteString

The bytes for version.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public GroupVersionKind.Builder newBuilderForType()
Returns
Type Description
GroupVersionKind.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GroupVersionKind.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GroupVersionKind.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public GroupVersionKind.Builder toBuilder()
Returns
Type Description
GroupVersionKind.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException