Class Service.Builder (0.3.0)

public static final class Service.Builder extends GeneratedMessage.Builder<Service.Builder> implements ServiceOrBuilder

Information about a Windows service.

Protobuf type google.backstory.Service

Implements

ServiceOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllServiceTypes(Iterable<? extends Service.ServiceType> values)

public Service.Builder addAllServiceTypes(Iterable<? extends Service.ServiceType> values)

The list of service types.

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

Parameter
Name Description
values Iterable<? extends com.google.backstory.Service.ServiceType>

The serviceTypes to add.

Returns
Type Description
Service.Builder

This builder for chaining.

addAllServiceTypesValue(Iterable<Integer> values)

public Service.Builder addAllServiceTypesValue(Iterable<Integer> values)

The list of service types.

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

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for serviceTypes to add.

Returns
Type Description
Service.Builder

This builder for chaining.

addServiceTypes(Service.ServiceType value)

public Service.Builder addServiceTypes(Service.ServiceType value)

The list of service types.

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

Parameter
Name Description
value Service.ServiceType

The serviceTypes to add.

Returns
Type Description
Service.Builder

This builder for chaining.

addServiceTypesValue(int value)

public Service.Builder addServiceTypesValue(int value)

The list of service types.

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

Parameter
Name Description
value int

The enum numeric value on the wire for serviceTypes to add.

Returns
Type Description
Service.Builder

This builder for chaining.

build()

public Service build()
Returns
Type Description
Service

buildPartial()

public Service buildPartial()
Returns
Type Description
Service

clear()

public Service.Builder clear()
Returns
Type Description
Service.Builder
Overrides

clearDisplayName()

public Service.Builder clearDisplayName()

The user-friendly display name of the service.

string display_name = 1;

Returns
Type Description
Service.Builder

This builder for chaining.

clearServiceType() (deprecated)

public Service.Builder clearServiceType()

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.Builder

This builder for chaining.

clearServiceTypes()

public Service.Builder clearServiceTypes()

The list of service types.

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

Returns
Type Description
Service.Builder

This builder for chaining.

clearStartupType()

public Service.Builder clearStartupType()

The startup type of the service.

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

Returns
Type Description
Service.Builder

This builder for chaining.

clearState()

public Service.Builder clearState()

The status of the service.

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

Returns
Type Description
Service.Builder

This builder for chaining.

getDefaultInstanceForType()

public Service getDefaultInstanceForType()
Returns
Type Description
Service

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Service other)

public Service.Builder mergeFrom(Service other)
Parameter
Name Description
other Service
Returns
Type Description
Service.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Service.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Service.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Service.Builder
Overrides

setDisplayName(String value)

public Service.Builder setDisplayName(String value)

The user-friendly display name of the service.

string display_name = 1;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Service.Builder setDisplayNameBytes(ByteString value)

The user-friendly display name of the service.

string display_name = 1;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setServiceType(Service.ServiceType value) (deprecated)

public Service.Builder setServiceType(Service.ServiceType value)

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];

Parameter
Name Description
value Service.ServiceType

The serviceType to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setServiceTypeValue(int value) (deprecated)

public Service.Builder setServiceTypeValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for serviceType to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setServiceTypes(int index, Service.ServiceType value)

public Service.Builder setServiceTypes(int index, Service.ServiceType value)

The list of service types.

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

Parameters
Name Description
index int

The index to set the value at.

value Service.ServiceType

The serviceTypes to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setServiceTypesValue(int index, int value)

public Service.Builder setServiceTypesValue(int index, int value)

The list of service types.

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

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for serviceTypes to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setStartupType(Service.StartupType value)

public Service.Builder setStartupType(Service.StartupType value)

The startup type of the service.

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

Parameter
Name Description
value Service.StartupType

The startupType to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setStartupTypeValue(int value)

public Service.Builder setStartupTypeValue(int value)

The startup type of the service.

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

Parameter
Name Description
value int

The enum numeric value on the wire for startupType to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setState(Service.State value)

public Service.Builder setState(Service.State value)

The status of the service.

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

Parameter
Name Description
value Service.State

The state to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setStateValue(int value)

public Service.Builder setStateValue(int value)

The status of the service.

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

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Service.Builder

This builder for chaining.