Class ResourceManifest (1.42.0)

public final class ResourceManifest extends GeneratedMessageV3 implements ResourceManifestOrBuilder

ResourceManifest represents a single Kubernetes resource to be applied to the cluster.

Protobuf type google.cloud.gkehub.v1.ResourceManifest

Static Fields

CLUSTER_SCOPED_FIELD_NUMBER

public static final int CLUSTER_SCOPED_FIELD_NUMBER
Field Value
Type Description
int

MANIFEST_FIELD_NUMBER

public static final int MANIFEST_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ResourceManifest getDefaultInstance()
Returns
Type Description
ResourceManifest

getDescriptor()

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

newBuilder()

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

newBuilder(ResourceManifest prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getClusterScoped()

public boolean getClusterScoped()

Whether the resource provided in the manifest is cluster_scoped. If unset, the manifest is assumed to be namespace scoped.

This field is used for REST mapping when applying the resource in a cluster.

bool cluster_scoped = 2;

Returns
Type Description
boolean

The clusterScoped.

getDefaultInstanceForType()

public ResourceManifest getDefaultInstanceForType()
Returns
Type Description
ResourceManifest

getManifest()

public String getManifest()

YAML manifest of the resource.

string manifest = 1;

Returns
Type Description
String

The manifest.

getManifestBytes()

public ByteString getManifestBytes()

YAML manifest of the resource.

string manifest = 1;

Returns
Type Description
ByteString

The bytes for manifest.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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 ResourceManifest.Builder newBuilderForType()
Returns
Type Description
ResourceManifest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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