Class GroupVersionKind (1.22.0)

public final class GroupVersionKind extends GeneratedMessageV3 implements GroupVersionKindOrBuilder

A Kubernetes object's GVK

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

Static Fields

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

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GroupVersionKind getDefaultInstance()
Returns
TypeDescription
GroupVersionKind

getDescriptor()

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

newBuilder()

public static GroupVersionKind.Builder newBuilder()
Returns
TypeDescription
GroupVersionKind.Builder

newBuilder(GroupVersionKind prototype)

public static GroupVersionKind.Builder newBuilder(GroupVersionKind prototype)
Parameter
NameDescription
prototypeGroupVersionKind
Returns
TypeDescription
GroupVersionKind.Builder

parseDelimitedFrom(InputStream input)

public static GroupVersionKind parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GroupVersionKind
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static GroupVersionKind parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
GroupVersionKind
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static GroupVersionKind parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
GroupVersionKind
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static GroupVersionKind parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GroupVersionKind
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static GroupVersionKind parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
GroupVersionKind
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<GroupVersionKind> parser()
Returns
TypeDescription
Parser<GroupVersionKind>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public GroupVersionKind getDefaultInstanceForType()
Returns
TypeDescription
GroupVersionKind

getGroup()

public String getGroup()

Kubernetes Group

string group = 1;

Returns
TypeDescription
String

The group.

getGroupBytes()

public ByteString getGroupBytes()

Kubernetes Group

string group = 1;

Returns
TypeDescription
ByteString

The bytes for group.

getKind()

public String getKind()

Kubernetes Kind

string kind = 3;

Returns
TypeDescription
String

The kind.

getKindBytes()

public ByteString getKindBytes()

Kubernetes Kind

string kind = 3;

Returns
TypeDescription
ByteString

The bytes for kind.

getParserForType()

public Parser<GroupVersionKind> getParserForType()
Returns
TypeDescription
Parser<GroupVersionKind>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getVersion()

public String getVersion()

Kubernetes Version

string version = 2;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Kubernetes Version

string version = 2;

Returns
TypeDescription
ByteString

The bytes for version.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public GroupVersionKind.Builder toBuilder()
Returns
TypeDescription
GroupVersionKind.Builder

writeTo(CodedOutputStream output)

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