Class ErrorResource (1.14.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.v1.ErrorResource

Static Fields

RESOURCE_GVK_FIELD_NUMBER

public static final int RESOURCE_GVK_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_NAMESPACE_FIELD_NUMBER

public static final int RESOURCE_NAMESPACE_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_NAME_FIELD_NUMBER

public static final int RESOURCE_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_PATH_FIELD_NUMBER

public static final int SOURCE_PATH_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ErrorResource getDefaultInstance()
Returns
TypeDescription
ErrorResource

getDescriptor()

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

newBuilder()

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

newBuilder(ErrorResource prototype)

public static ErrorResource.Builder newBuilder(ErrorResource prototype)
Parameter
NameDescription
prototypeErrorResource
Returns
TypeDescription
ErrorResource.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ErrorResource getDefaultInstanceForType()
Returns
TypeDescription
ErrorResource

getParserForType()

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

getResourceGvk()

public GroupVersionKind getResourceGvk()

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

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

Returns
TypeDescription
GroupVersionKind

The resourceGvk.

getResourceGvkOrBuilder()

public GroupVersionKindOrBuilder getResourceGvkOrBuilder()

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

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

Returns
TypeDescription
GroupVersionKindOrBuilder

getResourceName()

public String getResourceName()

Metadata name of the resource that is causing an error

string resource_name = 2;

Returns
TypeDescription
String

The resourceName.

getResourceNameBytes()

public ByteString getResourceNameBytes()

Metadata name of the resource that is causing an error

string resource_name = 2;

Returns
TypeDescription
ByteString

The bytes for resourceName.

getResourceNamespace()

public String getResourceNamespace()

Namespace of the resource that is causing an error

string resource_namespace = 3;

Returns
TypeDescription
String

The resourceNamespace.

getResourceNamespaceBytes()

public ByteString getResourceNamespaceBytes()

Namespace of the resource that is causing an error

string resource_namespace = 3;

Returns
TypeDescription
ByteString

The bytes for resourceNamespace.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSourcePath()

public String getSourcePath()

Path in the git repo of the erroneous config

string source_path = 1;

Returns
TypeDescription
String

The sourcePath.

getSourcePathBytes()

public ByteString getSourcePathBytes()

Path in the git repo of the erroneous config

string source_path = 1;

Returns
TypeDescription
ByteString

The bytes for sourcePath.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasResourceGvk()

public boolean hasResourceGvk()

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

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

Returns
TypeDescription
boolean

Whether the resourceGvk field is set.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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