Class SyncError (1.4.0)

public final class SyncError extends GeneratedMessageV3 implements SyncErrorOrBuilder

An ACM created error representing a problem syncing configurations

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

Implements

SyncErrorOrBuilder

Static Fields

CODE_FIELD_NUMBER

public static final int CODE_FIELD_NUMBER
Field Value
TypeDescription
int

ERROR_MESSAGE_FIELD_NUMBER

public static final int ERROR_MESSAGE_FIELD_NUMBER
Field Value
TypeDescription
int

ERROR_RESOURCES_FIELD_NUMBER

public static final int ERROR_RESOURCES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SyncError getDefaultInstance()
Returns
TypeDescription
SyncError

getDescriptor()

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

newBuilder()

public static SyncError.Builder newBuilder()
Returns
TypeDescription
SyncError.Builder

newBuilder(SyncError prototype)

public static SyncError.Builder newBuilder(SyncError prototype)
Parameter
NameDescription
prototypeSyncError
Returns
TypeDescription
SyncError.Builder

parseDelimitedFrom(InputStream input)

public static SyncError parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SyncError
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SyncError parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SyncError
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SyncError parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SyncError
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SyncError parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SyncError
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SyncError parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SyncError
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SyncError parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SyncError
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SyncError parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SyncError
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SyncError parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SyncError
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SyncError parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SyncError
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SyncError parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SyncError
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SyncError parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SyncError
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SyncError parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SyncError
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SyncError> parser()
Returns
TypeDescription
Parser<SyncError>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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.v1.ErrorResource error_resources = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ErrorResource

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

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

getParserForType()

public Parser<SyncError> getParserForType()
Returns
TypeDescription
Parser<SyncError>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SyncError.Builder newBuilderForType()
Returns
TypeDescription
SyncError.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SyncError.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SyncError.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SyncError.Builder toBuilder()
Returns
TypeDescription
SyncError.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException