Class ErrorResource (1.47.0)

public final class ErrorResource extends GeneratedMessageV3 implements ErrorResourceOrBuilder

Model for a config file in the git repo with an associated Sync error

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

Static Fields

RESOURCE_GVK_FIELD_NUMBER

public static final int RESOURCE_GVK_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_NAMESPACE_FIELD_NUMBER

public static final int RESOURCE_NAMESPACE_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_NAME_FIELD_NUMBER

public static final int RESOURCE_NAME_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_PATH_FIELD_NUMBER

public static final int SOURCE_PATH_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ErrorResource getDefaultInstance()
Returns
Type Description
ErrorResource

getDescriptor()

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

newBuilder()

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

newBuilder(ErrorResource prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ErrorResource getDefaultInstanceForType()
Returns
Type Description
ErrorResource

getParserForType()

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

getResourceGvk()

public GroupVersionKind getResourceGvk()

Group/version/kind of the resource that is causing an error

.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4;

Returns
Type Description
GroupVersionKind

The resourceGvk.

getResourceGvkOrBuilder()

public GroupVersionKindOrBuilder getResourceGvkOrBuilder()

Group/version/kind of the resource that is causing an error

.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4;

Returns
Type Description
GroupVersionKindOrBuilder

getResourceName()

public String getResourceName()

Metadata name of the resource that is causing an error

string resource_name = 2;

Returns
Type Description
String

The resourceName.

getResourceNameBytes()

public ByteString getResourceNameBytes()

Metadata name of the resource that is causing an error

string resource_name = 2;

Returns
Type Description
ByteString

The bytes for resourceName.

getResourceNamespace()

public String getResourceNamespace()

Namespace of the resource that is causing an error

string resource_namespace = 3;

Returns
Type Description
String

The resourceNamespace.

getResourceNamespaceBytes()

public ByteString getResourceNamespaceBytes()

Namespace of the resource that is causing an error

string resource_namespace = 3;

Returns
Type Description
ByteString

The bytes for resourceNamespace.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSourcePath()

public String getSourcePath()

Path in the git repo of the erroneous config

string source_path = 1;

Returns
Type Description
String

The sourcePath.

getSourcePathBytes()

public ByteString getSourcePathBytes()

Path in the git repo of the erroneous config

string source_path = 1;

Returns
Type Description
ByteString

The bytes for sourcePath.

hasResourceGvk()

public boolean hasResourceGvk()

Group/version/kind of the resource that is causing an error

.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4;

Returns
Type Description
boolean

Whether the resourceGvk field is set.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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