Class ResourceManifest (1.19.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.v1beta1.ResourceManifest

Static Fields

CLUSTER_SCOPED_FIELD_NUMBER

public static final int CLUSTER_SCOPED_FIELD_NUMBER
Field Value
TypeDescription
int

MANIFEST_FIELD_NUMBER

public static final int MANIFEST_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ResourceManifest getDefaultInstance()
Returns
TypeDescription
ResourceManifest

getDescriptor()

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

newBuilder()

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

newBuilder(ResourceManifest prototype)

public static ResourceManifest.Builder newBuilder(ResourceManifest prototype)
Parameter
NameDescription
prototypeResourceManifest
Returns
TypeDescription
ResourceManifest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
boolean

The clusterScoped.

getDefaultInstanceForType()

public ResourceManifest getDefaultInstanceForType()
Returns
TypeDescription
ResourceManifest

getManifest()

public String getManifest()

YAML manifest of the resource.

string manifest = 1;

Returns
TypeDescription
String

The manifest.

getManifestBytes()

public ByteString getManifestBytes()

YAML manifest of the resource.

string manifest = 1;

Returns
TypeDescription
ByteString

The bytes for manifest.

getParserForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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