Class ErrorResource.Builder (1.19.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.v1alpha.ErrorResource

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ErrorResource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ErrorResource.Builder
Overrides

build()

public ErrorResource build()
Returns
TypeDescription
ErrorResource

buildPartial()

public ErrorResource buildPartial()
Returns
TypeDescription
ErrorResource

clear()

public ErrorResource.Builder clear()
Returns
TypeDescription
ErrorResource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ErrorResource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ErrorResource.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ErrorResource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ErrorResource.Builder
Overrides

clearResourceGvk()

public ErrorResource.Builder clearResourceGvk()

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

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

Returns
TypeDescription
ErrorResource.Builder

clearResourceName()

public ErrorResource.Builder clearResourceName()

Metadata name of the resource that is causing an error

string resource_name = 2;

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

This builder for chaining.

clone()

public ErrorResource.Builder clone()
Returns
TypeDescription
ErrorResource.Builder
Overrides

getDefaultInstanceForType()

public ErrorResource getDefaultInstanceForType()
Returns
TypeDescription
ErrorResource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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
TypeDescription
GroupVersionKind

The resourceGvk.

getResourceGvkBuilder()

public GroupVersionKind.Builder getResourceGvkBuilder()

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

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

Returns
TypeDescription
GroupVersionKind.Builder

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
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.

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.

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
TypeDescription
boolean

Whether the resourceGvk field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ErrorResource other)

public ErrorResource.Builder mergeFrom(ErrorResource other)
Parameter
NameDescription
otherErrorResource
Returns
TypeDescription
ErrorResource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ErrorResource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ErrorResource.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ErrorResource.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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.v1alpha.GroupVersionKind resource_gvk = 4;

Parameter
NameDescription
valueGroupVersionKind
Returns
TypeDescription
ErrorResource.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ErrorResource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ErrorResource.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ErrorResource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ErrorResource.Builder
Overrides

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

public ErrorResource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v1alpha.GroupVersionKind resource_gvk = 4;

Parameter
NameDescription
valueGroupVersionKind
Returns
TypeDescription
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.v1alpha.GroupVersionKind resource_gvk = 4;

Parameter
NameDescription
builderForValueGroupVersionKind.Builder
Returns
TypeDescription
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
NameDescription
valueString

The resourceName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for resourceName to set.

Returns
TypeDescription
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
NameDescription
valueString

The resourceNamespace to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for resourceNamespace to set.

Returns
TypeDescription
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
NameDescription
valueString

The sourcePath to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for sourcePath to set.

Returns
TypeDescription
ErrorResource.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ErrorResource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ErrorResource.Builder
Overrides