Top Fields Constructors Methods
com.mysql.cj.protocol.x

public Class XMessage

extends Object
implements Message, Message
Class Inheritance
All Implemented Interfaces
com.google.protobuf.Message, com.google.protobuf.MessageOrBuilder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageLite, com.mysql.cj.protocol.Message
Imports
java.io.IOException, .OutputStream, java.util.ArrayList, .List, .Map, com.google.protobuf.ByteString, .CodedOutputStream, .Descriptors.Descriptor, .Descriptors.FieldDescriptor, .Descriptors.OneofDescriptor, .Parser, .UnknownFieldSet, com.mysql.cj.protocol.Message

Field Summary

Modifier and TypeField and Description
private Message
private List<Notice>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public XMessage
public List<String>
findInitializationErrors()

Implements com.google.protobuf.MessageOrBuilder.findInitializationErrors.

Returns a list of field paths (e.g. "foo.bar.baz") of required fields which are not set in this message.

public Map<Descriptors.FieldDescriptor, Object>
getAllFields()

Implements com.google.protobuf.MessageOrBuilder.getAllFields.

Returns a collection of all the fields in this message which are set and their corresponding values.

public byte[]
getByteBuffer()

Implements com.mysql.cj.protocol.Message.getByteBuffer.

Returns the array of bytes this Buffer is using to read from.

public Message
public Descriptors.Descriptor
getDescriptorForType()

Implements com.google.protobuf.MessageOrBuilder.getDescriptorForType.

Get the message's type's descriptor.

public Object
getField(Descriptors.FieldDescriptor arg0)

Implements com.google.protobuf.MessageOrBuilder.getField.

Obtains the value of the given field, or the default value if it is not set.

public String
getInitializationErrorString()

Implements com.google.protobuf.MessageOrBuilder.getInitializationErrorString.

Returns a comma-delimited list of required fields which are not set in this message object.

public Message
public List<Notice>
public Descriptors.FieldDescriptor
getOneofFieldDescriptor(Descriptors.OneofDescriptor arg0)

Implements com.google.protobuf.MessageOrBuilder.getOneofFieldDescriptor.

Obtains the FieldDescriptor if the given oneof is set.

public Parser<? extends Message>
getParserForType()

Implements com.google.protobuf.Message.getParserForType.

Gets the parser for a message of the same type as this message.

public int
getPosition()

Implements com.mysql.cj.protocol.Message.getPosition.

Returns the current position to write to/ read from

public Object
getRepeatedField(Descriptors.FieldDescriptor arg0, int arg1)

Implements com.google.protobuf.MessageOrBuilder.getRepeatedField.

Gets an element of a repeated field.

public int
getRepeatedFieldCount(Descriptors.FieldDescriptor arg0)

Implements com.google.protobuf.MessageOrBuilder.getRepeatedFieldCount.

Gets the number of elements of a repeated field.

public int
getSerializedSize()

Implements com.google.protobuf.MessageLite.getSerializedSize.

Get the number of bytes required to encode this message.

public UnknownFieldSet
public boolean
hasField(Descriptors.FieldDescriptor arg0)

Implements com.google.protobuf.MessageOrBuilder.hasField.

Returns true if the given field is set.

public boolean
hasOneof(Descriptors.OneofDescriptor arg0)

Implements com.google.protobuf.MessageOrBuilder.hasOneof.

Returns true if the given oneof is set.

public boolean
isInitialized()

Implements com.google.protobuf.MessageLiteOrBuilder.isInitialized.

Returns true if all required fields in the message and all embedded messages are set, false otherwise.

public Message.Builder
newBuilderForType()

Implements com.google.protobuf.Message.newBuilderForType.

Constructs a new builder for a message of the same type as this message.

public Message.Builder
toBuilder()

Implements com.google.protobuf.Message.toBuilder.

Constructs a builder initialized with the current message.

public byte[]
toByteArray()

Implements com.google.protobuf.MessageLite.toByteArray.

Serializes the message to a byte array and returns it.

public ByteString
toByteString()

Implements com.google.protobuf.MessageLite.toByteString.

Serializes the message to a ByteString and returns it.

public void
writeDelimitedTo(OutputStream arg0)

Implements com.google.protobuf.MessageLite.writeDelimitedTo.

Like writeTo(OutputStream), but writes the size of the message as a varint before writing the data.

public void
writeTo(CodedOutputStream arg0)

Implements com.google.protobuf.MessageLite.writeTo.

Serializes the message and writes it to output.

public void
writeTo(OutputStream arg0)

Implements com.google.protobuf.MessageLite.writeTo.

Serializes the message and writes it to output.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

messageback to summary
private Message message
noticesback to summary
private List<Notice> notices

Constructor Detail

XMessageback to summary
public XMessage(Message mess)

Method Detail

addNoticesback to summary
public XMessage addNotices(List<Notice> n)
findInitializationErrorsback to summary
public List<String> findInitializationErrors()

Implements com.google.protobuf.MessageOrBuilder.findInitializationErrors.

Doc from com.google.protobuf.MessageOrBuilder.findInitializationErrors.

Returns a list of field paths (e.g. "foo.bar.baz") of required fields which are not set in this message. You should call MessageLiteOrBuilder#isInitialized() first to check if there are any missing fields, as that method is likely to be much faster than this one even when the message is fully-initialized.

Annotations
@Override
getAllFieldsback to summary
public Map<Descriptors.FieldDescriptor, Object> getAllFields()

Implements com.google.protobuf.MessageOrBuilder.getAllFields.

Doc from com.google.protobuf.MessageOrBuilder.getAllFields.

Returns a collection of all the fields in this message which are set and their corresponding values. A singular ("required" or "optional") field is set iff hasField() returns true for that field. A "repeated" field is set iff getRepeatedFieldCount() is greater than zero. The values are exactly what would be returned by calling getField(Descriptors.FieldDescriptor) for each field. The map is guaranteed to be a sorted map, so iterating over it will return fields in order by field number.
If this is for a builder, the returned map may or may not reflect future changes to the builder. Either way, the returned map is itself unmodifiable.

Annotations
@Override
getByteBufferback to summary
public byte[] getByteBuffer()

Implements com.mysql.cj.protocol.Message.getByteBuffer.

Doc from com.mysql.cj.protocol.Message.getByteBuffer.

Returns the array of bytes this Buffer is using to read from.

Returns:byte[]

byte array being read from

Annotations
@Override
getDefaultInstanceForTypeback to summary
public Message getDefaultInstanceForType()

Implements com.google.protobuf.MessageLiteOrBuilder.getDefaultInstanceForType, com.google.protobuf.MessageOrBuilder.getDefaultInstanceForType.

Doc from com.google.protobuf.MessageLiteOrBuilder.getDefaultInstanceForType.

Get an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from the getDefaultInstance() method of generated message classes in that this method is an abstract method of the MessageLite interface whereas getDefaultInstance() is a static method of a specific class. They return the same thing.

Annotations
@Override
getDescriptorForTypeback to summary
public Descriptors.Descriptor getDescriptorForType()

Implements com.google.protobuf.MessageOrBuilder.getDescriptorForType.

Doc from com.google.protobuf.MessageOrBuilder.getDescriptorForType.

Get the message's type's descriptor. This differs from the getDescriptor() method of generated message classes in that this method is an abstract method of the Message interface whereas getDescriptor() is a static method of a specific class. They return the same thing.

Annotations
@Override
getFieldback to summary
public Object getField(Descriptors.FieldDescriptor arg0)

Implements com.google.protobuf.MessageOrBuilder.getField.

Doc from com.google.protobuf.MessageOrBuilder.getField.

Obtains the value of the given field, or the default value if it is not set. For primitive fields, the boxed primitive value is returned. For enum fields, the EnumValueDescriptor for the value is returned. For embedded message fields, the sub-message is returned. For repeated fields, a java.util.List is returned.

Annotations
@Override
getInitializationErrorStringback to summary
public String getInitializationErrorString()

Implements com.google.protobuf.MessageOrBuilder.getInitializationErrorString.

Doc from com.google.protobuf.MessageOrBuilder.getInitializationErrorString.

Returns a comma-delimited list of required fields which are not set in this message object. You should call MessageLiteOrBuilder#isInitialized() first to check if there are any missing fields, as that method is likely to be much faster than this one even when the message is fully-initialized.

Annotations
@Override
getMessageback to summary
public Message getMessage()
getNoticesback to summary
public List<Notice> getNotices()
getOneofFieldDescriptorback to summary
public Descriptors.FieldDescriptor getOneofFieldDescriptor(Descriptors.OneofDescriptor arg0)

Implements com.google.protobuf.MessageOrBuilder.getOneofFieldDescriptor.

Doc from com.google.protobuf.MessageOrBuilder.getOneofFieldDescriptor.

Obtains the FieldDescriptor if the given oneof is set. Returns null if no field is set.

Annotations
@Override
getParserForTypeback to summary
public Parser<? extends Message> getParserForType()

Implements com.google.protobuf.Message.getParserForType.

Doc from com.google.protobuf.MessageLite.getParserForType.

Gets the parser for a message of the same type as this message.

Annotations
@Override
getPositionback to summary
public int getPosition()

Implements com.mysql.cj.protocol.Message.getPosition.

Doc from com.mysql.cj.protocol.Message.getPosition.

Returns the current position to write to/ read from

Returns:int

the current position to write to/ read from

Annotations
@Override
getRepeatedFieldback to summary
public Object getRepeatedField(Descriptors.FieldDescriptor arg0, int arg1)

Implements com.google.protobuf.MessageOrBuilder.getRepeatedField.

Doc from com.google.protobuf.MessageOrBuilder.getRepeatedField.

Gets an element of a repeated field. For primitive fields, the boxed primitive value is returned. For enum fields, the EnumValueDescriptor for the value is returned. For embedded message fields, the sub-message is returned.

Annotations
@Override
getRepeatedFieldCountback to summary
public int getRepeatedFieldCount(Descriptors.FieldDescriptor arg0)

Implements com.google.protobuf.MessageOrBuilder.getRepeatedFieldCount.

Doc from com.google.protobuf.MessageOrBuilder.getRepeatedFieldCount.

Gets the number of elements of a repeated field. This is exactly equivalent to calling the generated "Count" accessor method corresponding to the field.

Annotations
@Override
getSerializedSizeback to summary
public int getSerializedSize()

Implements com.google.protobuf.MessageLite.getSerializedSize.

Doc from com.google.protobuf.MessageLite.getSerializedSize.

Get the number of bytes required to encode this message. The result is only computed on the first call and memoized after that. If this message requires more than Integer.MAX_VALUE bytes to encode, the return value will be smaller than the actual number of bytes required and might be negative.

Annotations
@Override
getUnknownFieldsback to summary
public UnknownFieldSet getUnknownFields()

Implements com.google.protobuf.MessageOrBuilder.getUnknownFields.

Doc from com.google.protobuf.MessageOrBuilder.getUnknownFields.

Get the UnknownFieldSet for this message.

Annotations
@Override
hasFieldback to summary
public boolean hasField(Descriptors.FieldDescriptor arg0)

Implements com.google.protobuf.MessageOrBuilder.hasField.

Doc from com.google.protobuf.MessageOrBuilder.hasField.

Returns true if the given field is set. This is exactly equivalent to calling the generated "has" accessor method corresponding to the field. The return value of hasField() is semantically meaningful only for fields where field.hasPresence() == true.

Annotations
@Override
hasOneofback to summary
public boolean hasOneof(Descriptors.OneofDescriptor arg0)

Implements com.google.protobuf.MessageOrBuilder.hasOneof.

Doc from com.google.protobuf.MessageOrBuilder.hasOneof.

Returns true if the given oneof is set.

Annotations
@Override
isInitializedback to summary
public boolean isInitialized()

Implements com.google.protobuf.MessageLiteOrBuilder.isInitialized.

Doc from com.google.protobuf.MessageLiteOrBuilder.isInitialized.

Returns true if all required fields in the message and all embedded messages are set, false otherwise.

See also: MessageOrBuilder#getInitializationErrorString()

Annotations
@Override
newBuilderForTypeback to summary
public Message.Builder newBuilderForType()

Implements com.google.protobuf.Message.newBuilderForType.

Doc from com.google.protobuf.MessageLite.newBuilderForType.

Constructs a new builder for a message of the same type as this message.

Annotations
@Override
toBuilderback to summary
public Message.Builder toBuilder()

Implements com.google.protobuf.Message.toBuilder.

Doc from com.google.protobuf.MessageLite.toBuilder.

Constructs a builder initialized with the current message. Use this to derive a new message from the current one.

Annotations
@Override
toByteArrayback to summary
public byte[] toByteArray()

Implements com.google.protobuf.MessageLite.toByteArray.

Doc from com.google.protobuf.MessageLite.toByteArray.

Serializes the message to a byte array and returns it. This is just a trivial wrapper around writeTo(CodedOutputStream). If this message requires more than Integer.MAX_VALUE bytes to encode, the behavior is unpredictable. It may throw a runtime exception or truncate or slice the data.

Annotations
@Override
toByteStringback to summary
public ByteString toByteString()

Implements com.google.protobuf.MessageLite.toByteString.

Doc from com.google.protobuf.MessageLite.toByteString.

Serializes the message to a ByteString and returns it. This is just a trivial wrapper around writeTo(CodedOutputStream). If this message requires more than Integer.MAX_VALUE bytes to encode, the behavior is unpredictable. It may throw a runtime exception or truncate or slice the data.

Annotations
@Override
writeDelimitedToback to summary
public void writeDelimitedTo(OutputStream arg0) throws IOException

Implements com.google.protobuf.MessageLite.writeDelimitedTo.

Doc from com.google.protobuf.MessageLite.writeDelimitedTo.

Like writeTo(OutputStream), but writes the size of the message as a varint before writing the data. This allows more data to be written to the stream after the message without the need to delimit the message data yourself. Use Builder#mergeDelimitedFrom(InputStream) (or the static method YourMessageType.parseDelimitedFrom(InputStream)) to parse messages written by this method.

Annotations
@Override
writeToback to summary
public void writeTo(CodedOutputStream arg0) throws IOException

Implements com.google.protobuf.MessageLite.writeTo.

Doc from com.google.protobuf.MessageLite.writeTo.

Serializes the message and writes it to output. This does not flush or close the stream.

Annotations
@Override
writeToback to summary
public void writeTo(OutputStream arg0) throws IOException

Implements com.google.protobuf.MessageLite.writeTo.

Doc from com.google.protobuf.MessageLite.writeTo.

Serializes the message and writes it to output. This is just a trivial wrapper around writeTo(CodedOutputStream). This does not flush or close the stream.

Note

Protocol Buffers are not self-delimiting. Therefore, if you write any more data to the stream after the message, you must somehow ensure that the parser on the receiving end does not interpret this as being part of the protocol message. This can be done, for instance, by writing the size of the message before the data, then making sure to limit the input to that size on the receiving end by wrapping the InputStream in one which limits the input. Alternatively, just use writeDelimitedTo(OutputStream).

Annotations
@Override