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
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
Name | Description |
values | Iterable<? extends com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource>
|
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SyncError.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public SyncError buildPartial()
Returns
clear()
public SyncError.Builder clear()
Returns
Overrides
clearCode()
public SyncError.Builder clearCode()
An ACM defined error code
string code = 1;
Returns
clearErrorMessage()
public SyncError.Builder clearErrorMessage()
A description of the error
string error_message = 2;
Returns
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
clearField(Descriptors.FieldDescriptor field)
public SyncError.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SyncError.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public SyncError.Builder clone()
Returns
Overrides
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
getDefaultInstanceForType()
public SyncError getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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.v1alpha.ErrorResource error_resources = 3;
Parameter
Returns
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
Returns
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
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
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
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
Returns
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
Type | Description |
List<? extends com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SyncError other)
public SyncError.Builder mergeFrom(SyncError other)
Parameter
Returns
public SyncError.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SyncError.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SyncError.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
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
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
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
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SyncError.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SyncError.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SyncError.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides