Class SyncError.Builder (1.0.1)

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

Implements

SyncErrorOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1alpha.ErrorResource error_resources = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource>
Returns
TypeDescription
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.v1alpha.ErrorResource error_resources = 3;

Parameter
NameDescription
valueErrorResource
Returns
TypeDescription
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.v1alpha.ErrorResource error_resources = 3;

Parameter
NameDescription
builderForValueErrorResource.Builder
Returns
TypeDescription
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.v1alpha.ErrorResource error_resources = 3;

Parameters
NameDescription
indexint
valueErrorResource
Returns
TypeDescription
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.v1alpha.ErrorResource error_resources = 3;

Parameters
NameDescription
indexint
builderForValueErrorResource.Builder
Returns
TypeDescription
SyncError.Builder

addErrorResourcesBuilder()

public ErrorResource.Builder addErrorResourcesBuilder()

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

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

Returns
TypeDescription
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.v1alpha.ErrorResource error_resources = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ErrorResource.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SyncError build()
Returns
TypeDescription
SyncError

buildPartial()

public SyncError buildPartial()
Returns
TypeDescription
SyncError

clear()

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

clearCode()

public SyncError.Builder clearCode()

An ACM defined error code

string code = 1;

Returns
TypeDescription
SyncError.Builder

This builder for chaining.

clearErrorMessage()

public SyncError.Builder clearErrorMessage()

A description of the error

string error_message = 2;

Returns
TypeDescription
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.v1alpha.ErrorResource error_resources = 3;

Returns
TypeDescription
SyncError.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCode()

public String getCode()

An ACM defined error code

string code = 1;

Returns
TypeDescription
String

The code.

getCodeBytes()

public ByteString getCodeBytes()

An ACM defined error code

string code = 1;

Returns
TypeDescription
ByteString

The bytes for code.

getDefaultInstanceForType()

public SyncError getDefaultInstanceForType()
Returns
TypeDescription
SyncError

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getErrorMessage()

public String getErrorMessage()

A description of the error

string error_message = 2;

Returns
TypeDescription
String

The errorMessage.

getErrorMessageBytes()

public ByteString getErrorMessageBytes()

A description of the error

string error_message = 2;

Returns
TypeDescription
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.v1alpha.ErrorResource error_resources = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1alpha.ErrorResource error_resources = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ErrorResource.Builder

getErrorResourcesBuilderList()

public List<ErrorResource.Builder> getErrorResourcesBuilderList()

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

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

Returns
TypeDescription
List<Builder>

getErrorResourcesCount()

public int getErrorResourcesCount()

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

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

Returns
TypeDescription
int

getErrorResourcesList()

public List<ErrorResource> getErrorResourcesList()

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

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

Returns
TypeDescription
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.v1alpha.ErrorResource error_resources = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ErrorResourceOrBuilder

getErrorResourcesOrBuilderList()

public List<? extends ErrorResourceOrBuilder> getErrorResourcesOrBuilderList()

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

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

Returns
TypeDescription
List<? extends com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SyncError other)

public SyncError.Builder mergeFrom(SyncError other)
Parameter
NameDescription
otherSyncError
Returns
TypeDescription
SyncError.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SyncError.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SyncError.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SyncError.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1alpha.ErrorResource error_resources = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
SyncError.Builder

setCode(String value)

public SyncError.Builder setCode(String value)

An ACM defined error code

string code = 1;

Parameter
NameDescription
valueString

The code to set.

Returns
TypeDescription
SyncError.Builder

This builder for chaining.

setCodeBytes(ByteString value)

public SyncError.Builder setCodeBytes(ByteString value)

An ACM defined error code

string code = 1;

Parameter
NameDescription
valueByteString

The bytes for code to set.

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

The errorMessage to set.

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

The bytes for errorMessage to set.

Returns
TypeDescription
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.v1alpha.ErrorResource error_resources = 3;

Parameters
NameDescription
indexint
valueErrorResource
Returns
TypeDescription
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.v1alpha.ErrorResource error_resources = 3;

Parameters
NameDescription
indexint
builderForValueErrorResource.Builder
Returns
TypeDescription
SyncError.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public SyncError.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SyncError.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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