A B C D E F G H I M O P R S T U V W 

A

addFixed32(int, int) - Method in class com.squareup.wire.Message.Builder
Adds a fixed32 value to the unknown field set with the given tag number.
addFixed64(int, long) - Method in class com.squareup.wire.Message.Builder
Adds a fixed64 value to the unknown field set with the given tag number.
addLengthDelimited(int, ByteString) - Method in class com.squareup.wire.Message.Builder
Adds a length delimited value to the unknown field set with the given tag number.
addVarint(int, long) - Method in class com.squareup.wire.Message.Builder
Adds a varint value to the unknown field set with the given tag number.
asList(T...) - Static method in class com.squareup.wire.Message
 

B

boolExtending(Class<T>) - Static method in class com.squareup.wire.Extension
 
build() - Method in class com.squareup.wire.Message.Builder
Returns an immutable Message based on the fields that have been set in this builder.
buildOptional() - Method in class com.squareup.wire.Extension.Builder
 
buildPacked() - Method in class com.squareup.wire.Extension.Builder
 
buildRepeated() - Method in class com.squareup.wire.Extension.Builder
 
buildRequired() - Method in class com.squareup.wire.Extension.Builder
 
byteAt(int) - Method in class com.squareup.wire.ByteString
 
bytesExtending(Class<T>) - Static method in class com.squareup.wire.Extension
 
ByteString - Class in com.squareup.wire
An immutable sequence of bytes.

C

checkRequiredFields() - Method in class com.squareup.wire.Message.Builder
Throws an exception if a required field has not been set.
com.squareup.wire - package com.squareup.wire
Wire runtime support classes.
compareTo(Extension<?, ?>) - Method in class com.squareup.wire.Extension
Orders Extensions in ascending tag order.
copyOf(List<T>) - Static method in class com.squareup.wire.Message
Utility method to return a mutable copy of a given List.

D

doubleExtending(Class<T>) - Static method in class com.squareup.wire.Extension
 

E

EMPTY - Static variable in class com.squareup.wire.ByteString
A singleton empty ByteString.
enumExtending(Class<E>, Class<T>) - Static method in class com.squareup.wire.Extension
 
enumFromInt(Class<E>, int) - Static method in class com.squareup.wire.Message
Returns the enumerated value tagged with the given integer value for the given enum class.
equals(Object) - Method in class com.squareup.wire.ByteString
 
equals(Object) - Method in class com.squareup.wire.Extension
 
equals(Object, Object) - Method in class com.squareup.wire.Message
 
ExtendableMessage<T extends ExtendableMessage<?>> - Class in com.squareup.wire
A message that declares an extension range.
ExtendableMessage(ExtendableMessage.ExtendableBuilder<T>) - Constructor for class com.squareup.wire.ExtendableMessage
 
ExtendableMessage.ExtendableBuilder<T extends ExtendableMessage<?>> - Class in com.squareup.wire
Builds a message that declares an extension range.
ExtendableMessage.ExtendableBuilder() - Constructor for class com.squareup.wire.ExtendableMessage.ExtendableBuilder
 
ExtendableMessage.ExtendableBuilder(ExtendableMessage<T>) - Constructor for class com.squareup.wire.ExtendableMessage.ExtendableBuilder
 
Extension<T extends ExtendableMessage<?>,E> - Class in com.squareup.wire
An extended attribute of on a protocol buffer message.
Extension.Builder<T extends ExtendableMessage<?>,E> - Class in com.squareup.wire
 
extensionsEqual(ExtendableMessage<T>) - Method in class com.squareup.wire.ExtendableMessage
Returns true if the extensions on this message equals the extensions of other.
extensionsHashCode() - Method in class com.squareup.wire.ExtendableMessage
Returns a hash code for the extensions on this message.

F

fixed32Extending(Class<T>) - Static method in class com.squareup.wire.Extension
 
fixed64Extending(Class<T>) - Static method in class com.squareup.wire.Extension
 
FIXED_32_SIZE - Static variable in enum com.squareup.wire.WireType
 
FIXED_64_SIZE - Static variable in enum com.squareup.wire.WireType
 
floatExtending(Class<T>) - Static method in class com.squareup.wire.Extension
 

G

get(T, T) - Static method in class com.squareup.wire.Wire
Returns value if it is not null; defaultValue otherwise.
getDatatype() - Method in class com.squareup.wire.Extension
 
getEnumType() - Method in class com.squareup.wire.Extension
 
getExtendedType() - Method in class com.squareup.wire.Extension
 
getExtension(Extension<T, E>) - Method in class com.squareup.wire.ExtendableMessage.ExtendableBuilder
Returns the value for extension on this message, or null if no value is set.
getExtension(Extension<T, E>) - Method in class com.squareup.wire.ExtendableMessage
Returns the value for extension on this message, or null if no value is set.
getExtensions() - Method in class com.squareup.wire.ExtendableMessage
Returns an immutable list of the extensions on this message in tag order.
getLabel() - Method in class com.squareup.wire.Extension
 
getMessageType() - Method in class com.squareup.wire.Extension
 
getName() - Method in class com.squareup.wire.Extension
 
getSerializedSize() - Method in class com.squareup.wire.Message
 
getTag() - Method in class com.squareup.wire.Extension
 
getUnknownFieldsSerializedSize() - Method in class com.squareup.wire.Message
 

H

hashCode() - Method in class com.squareup.wire.ByteString
 
hashCode() - Method in class com.squareup.wire.Extension
 
hashCode - Variable in class com.squareup.wire.Message
If non-zero, the hash code of this message.

I

immutableCopyOf(List<T>) - Static method in class com.squareup.wire.Message
Utility method to return an immutable copy of a given List.
int32Extending(Class<T>) - Static method in class com.squareup.wire.Extension
 
int32Size(int) - Static method in class com.squareup.wire.WireOutput
Computes the number of bytes that would be needed to encode a signed variable-length integer of up to 32 bits.
int64Extending(Class<T>) - Static method in class com.squareup.wire.Extension
 
int64Size(long) - Static method in class com.squareup.wire.WireOutput
Computes the number of bytes that would be needed to encode a signed variable-length integer of up to 64 bits.
intFromEnum(E) - Static method in class com.squareup.wire.Message
Returns the integer value tagged associated with the given enum instance.
isPacked() - Method in enum com.squareup.wire.Message.Label
 
isRepeated() - Method in enum com.squareup.wire.Message.Label
 

M

makeTag(int, WireType) - Static method in class com.squareup.wire.WireOutput
Makes a tag value given a field number and wire type.
Message - Class in com.squareup.wire
Superclass for protocol buffer messages.
Message(Message.Builder) - Constructor for class com.squareup.wire.Message
Constructs a Message, initialized with any unknown field data stored in the given Builder.
Message.Builder<T extends Message> - Class in com.squareup.wire
Superclass for protocol buffer message builders.
Message.Builder() - Constructor for class com.squareup.wire.Message.Builder
Constructs a Builder with no unknown field data.
Message.Builder(Message) - Constructor for class com.squareup.wire.Message.Builder
Constructs a Builder with unknown field data initialized to a copy of any unknown field data in the given Message.
Message.Datatype - Enum in com.squareup.wire
A protocol buffer data type.
Message.Label - Enum in com.squareup.wire
A protocol buffer label.
messageExtending(Class<M>, Class<T>) - Static method in class com.squareup.wire.Extension
 
messageHeaderSize(int, int) - Static method in class com.squareup.wire.WireOutput
Returns the length in bytes of a message header consisting of a field number, wire type, and message length in bytes.
messageSize(int, int) - Static method in class com.squareup.wire.WireOutput
Computes the number of bytes that would be needed to encode a message field with a given tag number and length.

O

of(byte...) - Static method in class com.squareup.wire.ByteString
Returns a new byte string containing the bytes of data.
of(byte[], int, int) - Static method in class com.squareup.wire.ByteString
Returns a new byte string containing the bytes of data from offset to offset + count - 1, inclusive.
of(String) - Static method in class com.squareup.wire.ByteString
Returns a new byte string containing the bytes of data, interpreted as Base64.
of(String) - Static method in enum com.squareup.wire.Message.Datatype
 
ORDER_BY_NAME - Static variable in enum com.squareup.wire.Message.Datatype
 
ORDER_BY_NAME - Static variable in enum com.squareup.wire.Message.Label
 

P

parseFrom(byte[], Class<M>) - Method in class com.squareup.wire.Wire
Reads a message of type messageClass from bytes and returns it.
parseFrom(byte[], int, int, Class<M>) - Method in class com.squareup.wire.Wire
Reads a message of type messageClass from the given range of bytes and returns it.
parseFrom(InputStream, Class<M>) - Method in class com.squareup.wire.Wire
Reads a message of type messageClass from the given InputStream and returns it.
ProtoEnum - Annotation Type in com.squareup.wire
Annotates generated Enum values with metadata for serialization and deserialization.
ProtoField - Annotation Type in com.squareup.wire
Annotates generated Message fields with metadata for serialization and deserialization.

R

read(InputStream, int) - Static method in class com.squareup.wire.ByteString
Reads count bytes from in and returns the result.

S

setExtension(Extension<T, E>, E) - Method in class com.squareup.wire.ExtendableMessage.ExtendableBuilder
Sets the value of extension on this builder to value.
setName(String) - Method in class com.squareup.wire.Extension.Builder
 
setTag(int) - Method in class com.squareup.wire.Extension.Builder
 
sfixed32Extending(Class<T>) - Static method in class com.squareup.wire.Extension
 
sfixed64Extending(Class<T>) - Static method in class com.squareup.wire.Extension
 
sint32Extending(Class<T>) - Static method in class com.squareup.wire.Extension
 
sint64Extending(Class<T>) - Static method in class com.squareup.wire.Extension
 
size() - Method in class com.squareup.wire.ByteString
Returns the number of bytes in this ByteString.
stringExtending(Class<T>) - Static method in class com.squareup.wire.Extension
 

T

TAG_TYPE_BITS - Static variable in enum com.squareup.wire.WireType
 
tagSize(int, WireType) - Static method in class com.squareup.wire.WireOutput
Computes the number of bytes that would be needed to encode a tag.
toByteArray() - Method in class com.squareup.wire.ByteString
Returns a byte array containing a copy of the bytes in this ByteString.
toByteArray() - Method in class com.squareup.wire.Message
 
toString() - Method in class com.squareup.wire.ByteString
Returns a string containing the contents of this ByteString in Base64 format.
toString() - Method in class com.squareup.wire.Extension
 
toString() - Method in class com.squareup.wire.Message
 

U

uint32Extending(Class<T>) - Static method in class com.squareup.wire.Extension
 
uint64Extending(Class<T>) - Static method in class com.squareup.wire.Extension
 

V

value() - Method in enum com.squareup.wire.Message.Datatype
 
value() - Method in enum com.squareup.wire.Message.Label
 
value() - Method in enum com.squareup.wire.WireType
 
valueOf(String) - Static method in enum com.squareup.wire.Message.Datatype
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.squareup.wire.Message.Label
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.squareup.wire.WireType
Returns the enum constant of this type with the specified name.
valueOf(int) - Static method in enum com.squareup.wire.WireType
 
values() - Static method in enum com.squareup.wire.Message.Datatype
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.squareup.wire.Message.Label
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.squareup.wire.WireType
Returns an array containing the constants of this enum type, in the order they are declared.

W

Wire - Class in com.squareup.wire
Encode and decode Wire protocol buffers.
Wire(Class<?>...) - Constructor for class com.squareup.wire.Wire
Creates a new Wire that can encode and decode the extensions specified in extensionClasses.
Wire(List<Class<?>>) - Constructor for class com.squareup.wire.Wire
Creates a new Wire that can encode and decode the extensions specified in extensionClasses.
WireOutput - Class in com.squareup.wire
Utilities for encoding and writing protocol message fields.
wireType() - Method in enum com.squareup.wire.Message.Datatype
 
WireType - Enum in com.squareup.wire
 
write(OutputStream) - Method in class com.squareup.wire.ByteString
Writes the contents of this byte string to out.
write(OutputStream, int, int) - Method in class com.squareup.wire.ByteString
Writes a subsequence of this byte string to out.
writeMessageHeader(int, byte[], int, int) - Static method in class com.squareup.wire.WireOutput
Writes a message header into the given output array, consisting of the field number, wire type, and message length in bytes.
writeTag(int, WireType, byte[], int) - Static method in class com.squareup.wire.WireOutput
Writes a tag value (as a variable-length integer combining a field number and wire type) to the given output array.
writeTo(byte[]) - Method in class com.squareup.wire.Message
 
writeTo(byte[], int, int) - Method in class com.squareup.wire.Message
 
writeUnknownFieldMap(WireOutput) - Method in class com.squareup.wire.Message
 
writeVarint(long, byte[], int) - Static method in class com.squareup.wire.WireOutput
Writes a variable-length integer into the given output array.
A B C D E F G H I M O P R S T U V W 

Copyright © 2013 Square, Inc.. All Rights Reserved.