Class MetadataExchangeResponse (0.23.0)

public final class MetadataExchangeResponse extends GeneratedMessageV3 implements MetadataExchangeResponseOrBuilder

Message for response to metadata exchange request. The sole purpose of this message is for the use of AlloyDB connectors. Clients should not rely on this message directly as there can be breaking changes in the future.

Protobuf type google.cloud.alloydb.connectors.v1.MetadataExchangeResponse

Static Fields

ERROR_FIELD_NUMBER

public static final int ERROR_FIELD_NUMBER
Field Value
Type Description
int

RESPONSE_CODE_FIELD_NUMBER

public static final int RESPONSE_CODE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static MetadataExchangeResponse getDefaultInstance()
Returns
Type Description
MetadataExchangeResponse

getDescriptor()

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

newBuilder()

public static MetadataExchangeResponse.Builder newBuilder()
Returns
Type Description
MetadataExchangeResponse.Builder

newBuilder(MetadataExchangeResponse prototype)

public static MetadataExchangeResponse.Builder newBuilder(MetadataExchangeResponse prototype)
Parameter
Name Description
prototype MetadataExchangeResponse
Returns
Type Description
MetadataExchangeResponse.Builder

parseDelimitedFrom(InputStream input)

public static MetadataExchangeResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MetadataExchangeResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MetadataExchangeResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MetadataExchangeResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static MetadataExchangeResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
MetadataExchangeResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MetadataExchangeResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MetadataExchangeResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MetadataExchangeResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
MetadataExchangeResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MetadataExchangeResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MetadataExchangeResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MetadataExchangeResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
MetadataExchangeResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MetadataExchangeResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MetadataExchangeResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static MetadataExchangeResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MetadataExchangeResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MetadataExchangeResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MetadataExchangeResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static MetadataExchangeResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
MetadataExchangeResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MetadataExchangeResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MetadataExchangeResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<MetadataExchangeResponse> parser()
Returns
Type Description
Parser<MetadataExchangeResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public MetadataExchangeResponse getDefaultInstanceForType()
Returns
Type Description
MetadataExchangeResponse

getError()

public String getError()

Optional. Error message.

string error = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The error.

getErrorBytes()

public ByteString getErrorBytes()

Optional. Error message.

string error = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for error.

getParserForType()

public Parser<MetadataExchangeResponse> getParserForType()
Returns
Type Description
Parser<MetadataExchangeResponse>
Overrides

getResponseCode()

public MetadataExchangeResponse.ResponseCode getResponseCode()

Response code.

.google.cloud.alloydb.connectors.v1.MetadataExchangeResponse.ResponseCode response_code = 1;

Returns
Type Description
MetadataExchangeResponse.ResponseCode

The responseCode.

getResponseCodeValue()

public int getResponseCodeValue()

Response code.

.google.cloud.alloydb.connectors.v1.MetadataExchangeResponse.ResponseCode response_code = 1;

Returns
Type Description
int

The enum numeric value on the wire for responseCode.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public MetadataExchangeResponse.Builder newBuilderForType()
Returns
Type Description
MetadataExchangeResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MetadataExchangeResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
MetadataExchangeResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public MetadataExchangeResponse.Builder toBuilder()
Returns
Type Description
MetadataExchangeResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException