Package net.morimekta.providence.model
Class ServiceType
- java.lang.Object
-
- net.morimekta.providence.model.ServiceType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ServiceType>
,Decl
,ServiceType_OrBuilder
,net.morimekta.providence.PMessage<ServiceType>
,net.morimekta.providence.PMessageOrBuilder<ServiceType>
,net.morimekta.providence.PValue<ServiceType>
,net.morimekta.providence.serializer.binary.BinaryWriter
,net.morimekta.util.Stringable
@Generated(value="net.morimekta.providence:providence-generator-java", comments="java:serializable") @Immutable public class ServiceType extends java.lang.Object implements Decl, ServiceType_OrBuilder, net.morimekta.providence.PMessage<ServiceType>, java.lang.Comparable<ServiceType>, java.io.Serializable, net.morimekta.providence.serializer.binary.BinaryWriter
service (extends <extend>)? { (<method> [;,]?)* }- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServiceType._Builder
service (extends <extend>)?static class
ServiceType._Field
-
Field Summary
Fields Modifier and Type Field Description static net.morimekta.providence.descriptor.PStructDescriptor<ServiceType>
kDescriptor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
asString()
static ServiceType._Builder
builder()
Make ap_model.ServiceType
builder.int
compareTo(ServiceType other)
net.morimekta.providence.descriptor.PStructDescriptor<ServiceType>
descriptor()
boolean
equals(java.lang.Object o)
<T> T
get(int key)
java.util.Map<java.lang.String,java.lang.String>
getAnnotations()
java.lang.String
getDocumentation()
Documentation for the specific declaration.java.lang.String
getExtend()
java.util.List<FunctionType>
getMethods()
java.lang.String
getName()
Name of the type, constant or service.boolean
has(int key)
boolean
hasAnnotations()
boolean
hasDocumentation()
boolean
hasExtend()
int
hashCode()
boolean
hasMethods()
boolean
hasName()
ServiceType._Builder
mutate()
int
numAnnotations()
int
numMethods()
java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>
optionalAnnotations()
java.util.Optional<java.lang.String>
optionalDocumentation()
Documentation for the specific declaration.java.util.Optional<java.lang.String>
optionalExtend()
static net.morimekta.providence.descriptor.PStructDescriptorProvider<ServiceType>
provider()
java.lang.String
toString()
int
writeBinary(net.morimekta.util.io.BigEndianBinaryWriter writer)
-
-
-
Field Detail
-
kDescriptor
public static final net.morimekta.providence.descriptor.PStructDescriptor<ServiceType> kDescriptor
-
-
Method Detail
-
hasDocumentation
public boolean hasDocumentation()
- Specified by:
hasDocumentation
in interfaceDecl
- Returns:
- If documentation is present.
-
getDocumentation
public java.lang.String getDocumentation()
Description copied from interface:Decl
Documentation for the specific declaration.- Specified by:
getDocumentation
in interfaceDecl
- Returns:
- The
documentation
value
-
optionalDocumentation
@Nonnull public java.util.Optional<java.lang.String> optionalDocumentation()
Description copied from interface:Decl
Documentation for the specific declaration.- Specified by:
optionalDocumentation
in interfaceDecl
- Returns:
- Optional of the
documentation
field value.
-
hasName
public boolean hasName()
-
getName
@Nonnull public java.lang.String getName()
Description copied from interface:Decl
Name of the type, constant or service.
-
hasExtend
public boolean hasExtend()
- Specified by:
hasExtend
in interfaceServiceType_OrBuilder
- Returns:
- If extend is present.
-
getExtend
public java.lang.String getExtend()
- Specified by:
getExtend
in interfaceServiceType_OrBuilder
- Returns:
- The
extend
value
-
optionalExtend
@Nonnull public java.util.Optional<java.lang.String> optionalExtend()
- Specified by:
optionalExtend
in interfaceServiceType_OrBuilder
- Returns:
- Optional of the
extend
field value.
-
numMethods
public int numMethods()
- Specified by:
numMethods
in interfaceServiceType_OrBuilder
- Returns:
- Number of entries in methods.
-
hasMethods
public boolean hasMethods()
- Specified by:
hasMethods
in interfaceServiceType_OrBuilder
- Returns:
- If methods is present.
-
getMethods
@Nonnull public java.util.List<FunctionType> getMethods()
- Specified by:
getMethods
in interfaceServiceType_OrBuilder
- Returns:
- The
methods
value
-
numAnnotations
public int numAnnotations()
- Specified by:
numAnnotations
in interfaceServiceType_OrBuilder
- Returns:
- Number of entries in annotations.
-
hasAnnotations
public boolean hasAnnotations()
- Specified by:
hasAnnotations
in interfaceServiceType_OrBuilder
- Returns:
- If annotations is present.
-
getAnnotations
public java.util.Map<java.lang.String,java.lang.String> getAnnotations()
- Specified by:
getAnnotations
in interfaceServiceType_OrBuilder
- Returns:
- The
annotations
value
-
optionalAnnotations
@Nonnull public java.util.Optional<java.util.Map<java.lang.String,java.lang.String>> optionalAnnotations()
- Specified by:
optionalAnnotations
in interfaceServiceType_OrBuilder
- Returns:
- Optional of the
annotations
field value.
-
has
public boolean has(int key)
- Specified by:
has
in interfacenet.morimekta.providence.PMessageOrBuilder<ServiceType>
-
get
public <T> T get(int key)
- Specified by:
get
in interfacenet.morimekta.providence.PMessageOrBuilder<ServiceType>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
asString
@Nonnull public java.lang.String asString()
- Specified by:
asString
in interfacenet.morimekta.providence.PMessage<ServiceType>
- Specified by:
asString
in interfacenet.morimekta.util.Stringable
-
compareTo
public int compareTo(ServiceType other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ServiceType>
-
writeBinary
public int writeBinary(net.morimekta.util.io.BigEndianBinaryWriter writer) throws java.io.IOException
- Specified by:
writeBinary
in interfacenet.morimekta.providence.serializer.binary.BinaryWriter
- Throws:
java.io.IOException
-
mutate
@Nonnull public ServiceType._Builder mutate()
- Specified by:
mutate
in interfacenet.morimekta.providence.PMessage<ServiceType>
-
provider
@Nonnull public static net.morimekta.providence.descriptor.PStructDescriptorProvider<ServiceType> provider()
-
descriptor
@Nonnull public net.morimekta.providence.descriptor.PStructDescriptor<ServiceType> descriptor()
- Specified by:
descriptor
in interfacenet.morimekta.providence.PMessageOrBuilder<ServiceType>
- Specified by:
descriptor
in interfacenet.morimekta.providence.PValue<ServiceType>
-
builder
public static ServiceType._Builder builder()
Make ap_model.ServiceType
builder.- Returns:
- The builder instance.
-
-