Class Software.Builder (0.3.0)

public static final class Software.Builder extends GeneratedMessage.Builder<Software.Builder> implements SoftwareOrBuilder

Information about a software package or application.

Protobuf type google.backstory.Software

Implements

SoftwareOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllPermissions(Iterable<? extends Permission> values)

public Software.Builder addAllPermissions(Iterable<? extends Permission> values)

System permissions granted to the software. For example, "android.permission.WRITE_EXTERNAL_STORAGE"

repeated .google.backstory.Permission permissions = 3;

Parameter
Name Description
values Iterable<? extends com.google.backstory.Permission>
Returns
Type Description
Software.Builder

addPermissions(Permission value)

public Software.Builder addPermissions(Permission value)

System permissions granted to the software. For example, "android.permission.WRITE_EXTERNAL_STORAGE"

repeated .google.backstory.Permission permissions = 3;

Parameter
Name Description
value Permission
Returns
Type Description
Software.Builder

addPermissions(Permission.Builder builderForValue)

public Software.Builder addPermissions(Permission.Builder builderForValue)

System permissions granted to the software. For example, "android.permission.WRITE_EXTERNAL_STORAGE"

repeated .google.backstory.Permission permissions = 3;

Parameter
Name Description
builderForValue Permission.Builder
Returns
Type Description
Software.Builder

addPermissions(int index, Permission value)

public Software.Builder addPermissions(int index, Permission value)

System permissions granted to the software. For example, "android.permission.WRITE_EXTERNAL_STORAGE"

repeated .google.backstory.Permission permissions = 3;

Parameters
Name Description
index int
value Permission
Returns
Type Description
Software.Builder

addPermissions(int index, Permission.Builder builderForValue)

public Software.Builder addPermissions(int index, Permission.Builder builderForValue)

System permissions granted to the software. For example, "android.permission.WRITE_EXTERNAL_STORAGE"

repeated .google.backstory.Permission permissions = 3;

Parameters
Name Description
index int
builderForValue Permission.Builder
Returns
Type Description
Software.Builder

addPermissionsBuilder()

public Permission.Builder addPermissionsBuilder()

System permissions granted to the software. For example, "android.permission.WRITE_EXTERNAL_STORAGE"

repeated .google.backstory.Permission permissions = 3;

Returns
Type Description
Permission.Builder

addPermissionsBuilder(int index)

public Permission.Builder addPermissionsBuilder(int index)

System permissions granted to the software. For example, "android.permission.WRITE_EXTERNAL_STORAGE"

repeated .google.backstory.Permission permissions = 3;

Parameter
Name Description
index int
Returns
Type Description
Permission.Builder

build()

public Software build()
Returns
Type Description
Software

buildPartial()

public Software buildPartial()
Returns
Type Description
Software

clear()

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

clearDescription()

public Software.Builder clearDescription()

The description of the software.

string description = 4;

Returns
Type Description
Software.Builder

This builder for chaining.

clearName()

public Software.Builder clearName()

The name of the software.

string name = 1;

Returns
Type Description
Software.Builder

This builder for chaining.

clearPermissions()

public Software.Builder clearPermissions()

System permissions granted to the software. For example, "android.permission.WRITE_EXTERNAL_STORAGE"

repeated .google.backstory.Permission permissions = 3;

Returns
Type Description
Software.Builder

clearVendorName()

public Software.Builder clearVendorName()

The name of the software vendor.

string vendor_name = 5;

Returns
Type Description
Software.Builder

This builder for chaining.

clearVersion()

public Software.Builder clearVersion()

The version of the software.

string version = 2;

Returns
Type Description
Software.Builder

This builder for chaining.

getDefaultInstanceForType()

public Software getDefaultInstanceForType()
Returns
Type Description
Software

getDescription()

public String getDescription()

The description of the software.

string description = 4;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The description of the software.

string description = 4;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getName()

public String getName()

The name of the software.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the software.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getPermissions(int index)

public Permission getPermissions(int index)

System permissions granted to the software. For example, "android.permission.WRITE_EXTERNAL_STORAGE"

repeated .google.backstory.Permission permissions = 3;

Parameter
Name Description
index int
Returns
Type Description
Permission

getPermissionsBuilder(int index)

public Permission.Builder getPermissionsBuilder(int index)

System permissions granted to the software. For example, "android.permission.WRITE_EXTERNAL_STORAGE"

repeated .google.backstory.Permission permissions = 3;

Parameter
Name Description
index int
Returns
Type Description
Permission.Builder

getPermissionsBuilderList()

public List<Permission.Builder> getPermissionsBuilderList()

System permissions granted to the software. For example, "android.permission.WRITE_EXTERNAL_STORAGE"

repeated .google.backstory.Permission permissions = 3;

Returns
Type Description
List<Builder>

getPermissionsCount()

public int getPermissionsCount()

System permissions granted to the software. For example, "android.permission.WRITE_EXTERNAL_STORAGE"

repeated .google.backstory.Permission permissions = 3;

Returns
Type Description
int

getPermissionsList()

public List<Permission> getPermissionsList()

System permissions granted to the software. For example, "android.permission.WRITE_EXTERNAL_STORAGE"

repeated .google.backstory.Permission permissions = 3;

Returns
Type Description
List<Permission>

getPermissionsOrBuilder(int index)

public PermissionOrBuilder getPermissionsOrBuilder(int index)

System permissions granted to the software. For example, "android.permission.WRITE_EXTERNAL_STORAGE"

repeated .google.backstory.Permission permissions = 3;

Parameter
Name Description
index int
Returns
Type Description
PermissionOrBuilder

getPermissionsOrBuilderList()

public List<? extends PermissionOrBuilder> getPermissionsOrBuilderList()

System permissions granted to the software. For example, "android.permission.WRITE_EXTERNAL_STORAGE"

repeated .google.backstory.Permission permissions = 3;

Returns
Type Description
List<? extends com.google.backstory.PermissionOrBuilder>

getVendorName()

public String getVendorName()

The name of the software vendor.

string vendor_name = 5;

Returns
Type Description
String

The vendorName.

getVendorNameBytes()

public ByteString getVendorNameBytes()

The name of the software vendor.

string vendor_name = 5;

Returns
Type Description
ByteString

The bytes for vendorName.

getVersion()

public String getVersion()

The version of the software.

string version = 2;

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

The version of the software.

string version = 2;

Returns
Type Description
ByteString

The bytes for version.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Software other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removePermissions(int index)

public Software.Builder removePermissions(int index)

System permissions granted to the software. For example, "android.permission.WRITE_EXTERNAL_STORAGE"

repeated .google.backstory.Permission permissions = 3;

Parameter
Name Description
index int
Returns
Type Description
Software.Builder

setDescription(String value)

public Software.Builder setDescription(String value)

The description of the software.

string description = 4;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Software.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Software.Builder setDescriptionBytes(ByteString value)

The description of the software.

string description = 4;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Software.Builder

This builder for chaining.

setName(String value)

public Software.Builder setName(String value)

The name of the software.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Software.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Software.Builder setNameBytes(ByteString value)

The name of the software.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Software.Builder

This builder for chaining.

setPermissions(int index, Permission value)

public Software.Builder setPermissions(int index, Permission value)

System permissions granted to the software. For example, "android.permission.WRITE_EXTERNAL_STORAGE"

repeated .google.backstory.Permission permissions = 3;

Parameters
Name Description
index int
value Permission
Returns
Type Description
Software.Builder

setPermissions(int index, Permission.Builder builderForValue)

public Software.Builder setPermissions(int index, Permission.Builder builderForValue)

System permissions granted to the software. For example, "android.permission.WRITE_EXTERNAL_STORAGE"

repeated .google.backstory.Permission permissions = 3;

Parameters
Name Description
index int
builderForValue Permission.Builder
Returns
Type Description
Software.Builder

setVendorName(String value)

public Software.Builder setVendorName(String value)

The name of the software vendor.

string vendor_name = 5;

Parameter
Name Description
value String

The vendorName to set.

Returns
Type Description
Software.Builder

This builder for chaining.

setVendorNameBytes(ByteString value)

public Software.Builder setVendorNameBytes(ByteString value)

The name of the software vendor.

string vendor_name = 5;

Parameter
Name Description
value ByteString

The bytes for vendorName to set.

Returns
Type Description
Software.Builder

This builder for chaining.

setVersion(String value)

public Software.Builder setVersion(String value)

The version of the software.

string version = 2;

Parameter
Name Description
value String

The version to set.

Returns
Type Description
Software.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public Software.Builder setVersionBytes(ByteString value)

The version of the software.

string version = 2;

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
Software.Builder

This builder for chaining.