Class Service (0.3.0)

public final class Service extends GeneratedMessage implements ServiceOrBuilder

Information about a Windows service.

Protobuf type google.backstory.Service

Implements

ServiceOrBuilder

Static Fields

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_TYPES_FIELD_NUMBER

public static final int SERVICE_TYPES_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_TYPE_FIELD_NUMBER

public static final int SERVICE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

STARTUP_TYPE_FIELD_NUMBER

public static final int STARTUP_TYPE_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Service getDefaultInstance()
Returns
Type Description
Service

getDescriptor()

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

newBuilder()

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

newBuilder(Service prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Service getDefaultInstanceForType()
Returns
Type Description
Service

getDisplayName()

public String getDisplayName()

The user-friendly display name of the service.

string display_name = 1;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The user-friendly display name of the service.

string display_name = 1;

Returns
Type Description
ByteString

The bytes for displayName.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getServiceType() (deprecated)

public Service.ServiceType getServiceType()

Deprecated. google.backstory.Service.service_type is deprecated. See backstory/udm.proto;l=5469

Deprecated: use service_types instead. The type of service.

.google.backstory.Service.ServiceType service_type = 3 [deprecated = true];

Returns
Type Description
Service.ServiceType

The serviceType.

getServiceTypeValue() (deprecated)

public int getServiceTypeValue()

Deprecated. google.backstory.Service.service_type is deprecated. See backstory/udm.proto;l=5469

Deprecated: use service_types instead. The type of service.

.google.backstory.Service.ServiceType service_type = 3 [deprecated = true];

Returns
Type Description
int

The enum numeric value on the wire for serviceType.

getServiceTypes(int index)

public Service.ServiceType getServiceTypes(int index)

The list of service types.

repeated .google.backstory.Service.ServiceType service_types = 6;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
Service.ServiceType

The serviceTypes at the given index.

getServiceTypesCount()

public int getServiceTypesCount()

The list of service types.

repeated .google.backstory.Service.ServiceType service_types = 6;

Returns
Type Description
int

The count of serviceTypes.

getServiceTypesList()

public List<Service.ServiceType> getServiceTypesList()

The list of service types.

repeated .google.backstory.Service.ServiceType service_types = 6;

Returns
Type Description
List<ServiceType>

A list containing the serviceTypes.

getServiceTypesValue(int index)

public int getServiceTypesValue(int index)

The list of service types.

repeated .google.backstory.Service.ServiceType service_types = 6;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of serviceTypes at the given index.

getServiceTypesValueList()

public List<Integer> getServiceTypesValueList()

The list of service types.

repeated .google.backstory.Service.ServiceType service_types = 6;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for serviceTypes.

getStartupType()

public Service.StartupType getStartupType()

The startup type of the service.

.google.backstory.Service.StartupType startup_type = 4;

Returns
Type Description
Service.StartupType

The startupType.

getStartupTypeValue()

public int getStartupTypeValue()

The startup type of the service.

.google.backstory.Service.StartupType startup_type = 4;

Returns
Type Description
int

The enum numeric value on the wire for startupType.

getState()

public Service.State getState()

The status of the service.

.google.backstory.Service.State state = 5;

Returns
Type Description
Service.State

The state.

getStateValue()

public int getStateValue()

The status of the service.

.google.backstory.Service.State state = 5;

Returns
Type Description
int

The enum numeric value on the wire for state.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Service.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Service.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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