Class SyncError.Builder (1.45.0)

public static final class SyncError.Builder extends GeneratedMessageV3.Builder<SyncError.Builder> implements SyncErrorOrBuilder

An ACM created error representing a problem syncing configurations

Protobuf type google.cloud.gkehub.configmanagement.v1.SyncError

Implements

SyncErrorOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllErrorResources(Iterable<? extends ErrorResource> values)

public SyncError.Builder addAllErrorResources(Iterable<? extends ErrorResource> values)

A list of config(s) associated with the error, if any

repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.gkehub.configmanagement.v1.ErrorResource>
Returns
Type Description
SyncError.Builder

addErrorResources(ErrorResource value)

public SyncError.Builder addErrorResources(ErrorResource value)

A list of config(s) associated with the error, if any

repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3;

Parameter
Name Description
value ErrorResource
Returns
Type Description
SyncError.Builder

addErrorResources(ErrorResource.Builder builderForValue)

public SyncError.Builder addErrorResources(ErrorResource.Builder builderForValue)

A list of config(s) associated with the error, if any

repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3;

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

addErrorResources(int index, ErrorResource value)

public SyncError.Builder addErrorResources(int index, ErrorResource value)

A list of config(s) associated with the error, if any

repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3;

Parameters
Name Description
index int
value ErrorResource
Returns
Type Description
SyncError.Builder

addErrorResources(int index, ErrorResource.Builder builderForValue)

public SyncError.Builder addErrorResources(int index, ErrorResource.Builder builderForValue)

A list of config(s) associated with the error, if any

repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3;

Parameters
Name Description
index int
builderForValue ErrorResource.Builder
Returns
Type Description
SyncError.Builder

addErrorResourcesBuilder()

public ErrorResource.Builder addErrorResourcesBuilder()

A list of config(s) associated with the error, if any

repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3;

Returns
Type Description
ErrorResource.Builder

addErrorResourcesBuilder(int index)

public ErrorResource.Builder addErrorResourcesBuilder(int index)

A list of config(s) associated with the error, if any

repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3;

Parameter
Name Description
index int
Returns
Type Description
ErrorResource.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SyncError build()
Returns
Type Description
SyncError

buildPartial()

public SyncError buildPartial()
Returns
Type Description
SyncError

clear()

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

clearCode()

public SyncError.Builder clearCode()

An ACM defined error code

string code = 1;

Returns
Type Description
SyncError.Builder

This builder for chaining.

clearErrorMessage()

public SyncError.Builder clearErrorMessage()

A description of the error

string error_message = 2;

Returns
Type Description
SyncError.Builder

This builder for chaining.

clearErrorResources()

public SyncError.Builder clearErrorResources()

A list of config(s) associated with the error, if any

repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3;

Returns
Type Description
SyncError.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCode()

public String getCode()

An ACM defined error code

string code = 1;

Returns
Type Description
String

The code.

getCodeBytes()

public ByteString getCodeBytes()

An ACM defined error code

string code = 1;

Returns
Type Description
ByteString

The bytes for code.

getDefaultInstanceForType()

public SyncError getDefaultInstanceForType()
Returns
Type Description
SyncError

getDescriptorForType()

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

getErrorMessage()

public String getErrorMessage()

A description of the error

string error_message = 2;

Returns
Type Description
String

The errorMessage.

getErrorMessageBytes()

public ByteString getErrorMessageBytes()

A description of the error

string error_message = 2;

Returns
Type Description
ByteString

The bytes for errorMessage.

getErrorResources(int index)

public ErrorResource getErrorResources(int index)

A list of config(s) associated with the error, if any

repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3;

Parameter
Name Description
index int
Returns
Type Description
ErrorResource

getErrorResourcesBuilder(int index)

public ErrorResource.Builder getErrorResourcesBuilder(int index)

A list of config(s) associated with the error, if any

repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3;

Parameter
Name Description
index int
Returns
Type Description
ErrorResource.Builder

getErrorResourcesBuilderList()

public List<ErrorResource.Builder> getErrorResourcesBuilderList()

A list of config(s) associated with the error, if any

repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3;

Returns
Type Description
List<Builder>

getErrorResourcesCount()

public int getErrorResourcesCount()

A list of config(s) associated with the error, if any

repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3;

Returns
Type Description
int

getErrorResourcesList()

public List<ErrorResource> getErrorResourcesList()

A list of config(s) associated with the error, if any

repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3;

Returns
Type Description
List<ErrorResource>

getErrorResourcesOrBuilder(int index)

public ErrorResourceOrBuilder getErrorResourcesOrBuilder(int index)

A list of config(s) associated with the error, if any

repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3;

Parameter
Name Description
index int
Returns
Type Description
ErrorResourceOrBuilder

getErrorResourcesOrBuilderList()

public List<? extends ErrorResourceOrBuilder> getErrorResourcesOrBuilderList()

A list of config(s) associated with the error, if any

repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3;

Returns
Type Description
List<? extends com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SyncError other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeErrorResources(int index)

public SyncError.Builder removeErrorResources(int index)

A list of config(s) associated with the error, if any

repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3;

Parameter
Name Description
index int
Returns
Type Description
SyncError.Builder

setCode(String value)

public SyncError.Builder setCode(String value)

An ACM defined error code

string code = 1;

Parameter
Name Description
value String

The code to set.

Returns
Type Description
SyncError.Builder

This builder for chaining.

setCodeBytes(ByteString value)

public SyncError.Builder setCodeBytes(ByteString value)

An ACM defined error code

string code = 1;

Parameter
Name Description
value ByteString

The bytes for code to set.

Returns
Type Description
SyncError.Builder

This builder for chaining.

setErrorMessage(String value)

public SyncError.Builder setErrorMessage(String value)

A description of the error

string error_message = 2;

Parameter
Name Description
value String

The errorMessage to set.

Returns
Type Description
SyncError.Builder

This builder for chaining.

setErrorMessageBytes(ByteString value)

public SyncError.Builder setErrorMessageBytes(ByteString value)

A description of the error

string error_message = 2;

Parameter
Name Description
value ByteString

The bytes for errorMessage to set.

Returns
Type Description
SyncError.Builder

This builder for chaining.

setErrorResources(int index, ErrorResource value)

public SyncError.Builder setErrorResources(int index, ErrorResource value)

A list of config(s) associated with the error, if any

repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3;

Parameters
Name Description
index int
value ErrorResource
Returns
Type Description
SyncError.Builder

setErrorResources(int index, ErrorResource.Builder builderForValue)

public SyncError.Builder setErrorResources(int index, ErrorResource.Builder builderForValue)

A list of config(s) associated with the error, if any

repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3;

Parameters
Name Description
index int
builderForValue ErrorResource.Builder
Returns
Type Description
SyncError.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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