Class ErrorResource.Builder (1.49.0)

public static final class ErrorResource.Builder extends GeneratedMessageV3.Builder<ErrorResource.Builder> implements ErrorResourceOrBuilder

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

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ErrorResource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ErrorResource.Builder
Overrides

build()

public ErrorResource build()
Returns
Type Description
ErrorResource

buildPartial()

public ErrorResource buildPartial()
Returns
Type Description
ErrorResource

clear()

public ErrorResource.Builder clear()
Returns
Type Description
ErrorResource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ErrorResource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ErrorResource.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ErrorResource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ErrorResource.Builder
Overrides

clearResourceGvk()

public ErrorResource.Builder clearResourceGvk()

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

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

Returns
Type Description
ErrorResource.Builder

clearResourceName()

public ErrorResource.Builder clearResourceName()

Metadata name of the resource that is causing an error

string resource_name = 2;

Returns
Type Description
ErrorResource.Builder

This builder for chaining.

clearResourceNamespace()

public ErrorResource.Builder clearResourceNamespace()

Namespace of the resource that is causing an error

string resource_namespace = 3;

Returns
Type Description
ErrorResource.Builder

This builder for chaining.

clearSourcePath()

public ErrorResource.Builder clearSourcePath()

Path in the git repo of the erroneous config

string source_path = 1;

Returns
Type Description
ErrorResource.Builder

This builder for chaining.

clone()

public ErrorResource.Builder clone()
Returns
Type Description
ErrorResource.Builder
Overrides

getDefaultInstanceForType()

public ErrorResource getDefaultInstanceForType()
Returns
Type Description
ErrorResource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getResourceGvk()

public GroupVersionKind getResourceGvk()

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

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

Returns
Type Description
GroupVersionKind

The resourceGvk.

getResourceGvkBuilder()

public GroupVersionKind.Builder getResourceGvkBuilder()

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

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

Returns
Type Description
GroupVersionKind.Builder

getResourceGvkOrBuilder()

public GroupVersionKindOrBuilder getResourceGvkOrBuilder()

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

.google.cloud.gkehub.configmanagement.v1beta.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.

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.v1beta.GroupVersionKind resource_gvk = 4;

Returns
Type Description
boolean

Whether the resourceGvk field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ErrorResource other)

public ErrorResource.Builder mergeFrom(ErrorResource other)
Parameter
Name Description
other ErrorResource
Returns
Type Description
ErrorResource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ErrorResource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ErrorResource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ErrorResource.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ErrorResource.Builder
Overrides

mergeResourceGvk(GroupVersionKind value)

public ErrorResource.Builder mergeResourceGvk(GroupVersionKind value)

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

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

Parameter
Name Description
value GroupVersionKind
Returns
Type Description
ErrorResource.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ErrorResource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ErrorResource.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ErrorResource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ErrorResource.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ErrorResource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ErrorResource.Builder
Overrides

setResourceGvk(GroupVersionKind value)

public ErrorResource.Builder setResourceGvk(GroupVersionKind value)

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

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

Parameter
Name Description
value GroupVersionKind
Returns
Type Description
ErrorResource.Builder

setResourceGvk(GroupVersionKind.Builder builderForValue)

public ErrorResource.Builder setResourceGvk(GroupVersionKind.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue GroupVersionKind.Builder
Returns
Type Description
ErrorResource.Builder

setResourceName(String value)

public ErrorResource.Builder setResourceName(String value)

Metadata name of the resource that is causing an error

string resource_name = 2;

Parameter
Name Description
value String

The resourceName to set.

Returns
Type Description
ErrorResource.Builder

This builder for chaining.

setResourceNameBytes(ByteString value)

public ErrorResource.Builder setResourceNameBytes(ByteString value)

Metadata name of the resource that is causing an error

string resource_name = 2;

Parameter
Name Description
value ByteString

The bytes for resourceName to set.

Returns
Type Description
ErrorResource.Builder

This builder for chaining.

setResourceNamespace(String value)

public ErrorResource.Builder setResourceNamespace(String value)

Namespace of the resource that is causing an error

string resource_namespace = 3;

Parameter
Name Description
value String

The resourceNamespace to set.

Returns
Type Description
ErrorResource.Builder

This builder for chaining.

setResourceNamespaceBytes(ByteString value)

public ErrorResource.Builder setResourceNamespaceBytes(ByteString value)

Namespace of the resource that is causing an error

string resource_namespace = 3;

Parameter
Name Description
value ByteString

The bytes for resourceNamespace to set.

Returns
Type Description
ErrorResource.Builder

This builder for chaining.

setSourcePath(String value)

public ErrorResource.Builder setSourcePath(String value)

Path in the git repo of the erroneous config

string source_path = 1;

Parameter
Name Description
value String

The sourcePath to set.

Returns
Type Description
ErrorResource.Builder

This builder for chaining.

setSourcePathBytes(ByteString value)

public ErrorResource.Builder setSourcePathBytes(ByteString value)

Path in the git repo of the erroneous config

string source_path = 1;

Parameter
Name Description
value ByteString

The bytes for sourcePath to set.

Returns
Type Description
ErrorResource.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ErrorResource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ErrorResource.Builder
Overrides