Class WindowsUpdate.Builder (2.48.0)

  public 
  
 static 
  
 final 
  
 class 
 WindowsUpdate 
 . 
 Builder 
  
 extends 
  
 GeneratedMessageV3 
 . 
 Builder<WindowsUpdate 
 . 
 Builder 
>  
 implements 
  
 WindowsUpdateOrBuilder 
 

Windows Update represents the metadata about the update for the Windows operating system. The fields in this message come from the Windows Update API documented at https://docs.microsoft.com/en-us/windows/win32/api/wuapi/nn-wuapi-iupdate .

Protobuf type grafeas.v1.WindowsUpdate

Static Methods

getDescriptor()

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

Methods

addAllCategories(Iterable<? extends WindowsUpdate.Category> values)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 addAllCategories 
 ( 
 Iterable 
< ? 
  
 extends 
  
 WindowsUpdate 
 . 
 Category 
>  
 values 
 ) 
 

The list of categories to which the update belongs.

repeated .grafeas.v1.WindowsUpdate.Category categories = 4;

Parameter
Name
Description
values
Iterable < ? extends io.grafeas.v1.WindowsUpdate.Category >
Returns
Type
Description

addAllKbArticleIds(Iterable<String> values)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 addAllKbArticleIds 
 ( 
 Iterable<String> 
  
 values 
 ) 
 

The Microsoft Knowledge Base article IDs that are associated with the update.

repeated string kb_article_ids = 5;

Parameter
Name
Description
values
Iterable < String >

The kbArticleIds to add.

Returns
Type
Description

This builder for chaining.

addCategories(int index, WindowsUpdate.Category value)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 addCategories 
 ( 
 int 
  
 index 
 , 
  
 WindowsUpdate 
 . 
 Category 
  
 value 
 ) 
 

The list of categories to which the update belongs.

repeated .grafeas.v1.WindowsUpdate.Category categories = 4;

Parameters
Name
Description
index
int
Returns
Type
Description

addCategories(int index, WindowsUpdate.Category.Builder builderForValue)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 addCategories 
 ( 
 int 
  
 index 
 , 
  
 WindowsUpdate 
 . 
 Category 
 . 
 Builder 
  
 builderForValue 
 ) 
 

The list of categories to which the update belongs.

repeated .grafeas.v1.WindowsUpdate.Category categories = 4;

Parameters
Name
Description
index
int
Returns
Type
Description

addCategories(WindowsUpdate.Category value)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 addCategories 
 ( 
 WindowsUpdate 
 . 
 Category 
  
 value 
 ) 
 

The list of categories to which the update belongs.

repeated .grafeas.v1.WindowsUpdate.Category categories = 4;

Parameter
Name
Description
Returns
Type
Description

addCategories(WindowsUpdate.Category.Builder builderForValue)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 addCategories 
 ( 
 WindowsUpdate 
 . 
 Category 
 . 
 Builder 
  
 builderForValue 
 ) 
 

The list of categories to which the update belongs.

repeated .grafeas.v1.WindowsUpdate.Category categories = 4;

Parameter
Name
Description
Returns
Type
Description

addCategoriesBuilder()

  public 
  
 WindowsUpdate 
 . 
 Category 
 . 
 Builder 
  
 addCategoriesBuilder 
 () 
 

The list of categories to which the update belongs.

repeated .grafeas.v1.WindowsUpdate.Category categories = 4;

Returns
Type
Description

addCategoriesBuilder(int index)

  public 
  
 WindowsUpdate 
 . 
 Category 
 . 
 Builder 
  
 addCategoriesBuilder 
 ( 
 int 
  
 index 
 ) 
 

The list of categories to which the update belongs.

repeated .grafeas.v1.WindowsUpdate.Category categories = 4;

Parameter
Name
Description
index
int
Returns
Type
Description

addKbArticleIds(String value)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 addKbArticleIds 
 ( 
 String 
  
 value 
 ) 
 

The Microsoft Knowledge Base article IDs that are associated with the update.

repeated string kb_article_ids = 5;

Parameter
Name
Description
value
String

The kbArticleIds to add.

Returns
Type
Description

This builder for chaining.

addKbArticleIdsBytes(ByteString value)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 addKbArticleIdsBytes 
 ( 
 ByteString 
  
 value 
 ) 
 

The Microsoft Knowledge Base article IDs that are associated with the update.

repeated string kb_article_ids = 5;

Parameter
Name
Description
value
ByteString

The bytes of the kbArticleIds to add.

Returns
Type
Description

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 addRepeatedField 
 ( 
 Descriptors 
 . 
 FieldDescriptor 
  
 field 
 , 
  
 Object 
  
 value 
 ) 
 
Parameters
Name
Description
value
Returns
Type
Description
Overrides

build()

  public 
  
 WindowsUpdate 
  
 build 
 () 
 
Returns
Type
Description

buildPartial()

  public 
  
 WindowsUpdate 
  
 buildPartial 
 () 
 
Returns
Type
Description

clear()

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 clear 
 () 
 
Returns
Type
Description
Overrides

clearCategories()

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 clearCategories 
 () 
 

The list of categories to which the update belongs.

repeated .grafeas.v1.WindowsUpdate.Category categories = 4;

Returns
Type
Description

clearDescription()

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 clearDescription 
 () 
 

The localized description of the update.

string description = 3;

Returns
Type
Description

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 clearField 
 ( 
 Descriptors 
 . 
 FieldDescriptor 
  
 field 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Overrides

clearIdentity()

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 clearIdentity 
 () 
 

Required - The unique identifier for the update.

.grafeas.v1.WindowsUpdate.Identity identity = 1;

Returns
Type
Description

clearKbArticleIds()

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 clearKbArticleIds 
 () 
 

The Microsoft Knowledge Base article IDs that are associated with the update.

repeated string kb_article_ids = 5;

Returns
Type
Description

This builder for chaining.

clearLastPublishedTimestamp()

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 clearLastPublishedTimestamp 
 () 
 

The last published timestamp of the update.

.google.protobuf.Timestamp last_published_timestamp = 7;

Returns
Type
Description

clearOneof(Descriptors.OneofDescriptor oneof)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 clearOneof 
 ( 
 Descriptors 
 . 
 OneofDescriptor 
  
 oneof 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Overrides

clearSupportUrl()

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 clearSupportUrl 
 () 
 

The hyperlink to the support information for the update.

string support_url = 6;

Returns
Type
Description

This builder for chaining.

clearTitle()

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 clearTitle 
 () 
 

The localized title of the update.

string title = 2;

Returns
Type
Description

This builder for chaining.

clone()

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 clone 
 () 
 
Returns
Type
Description
Overrides

getCategories(int index)

  public 
  
 WindowsUpdate 
 . 
 Category 
  
 getCategories 
 ( 
 int 
  
 index 
 ) 
 

The list of categories to which the update belongs.

repeated .grafeas.v1.WindowsUpdate.Category categories = 4;

Parameter
Name
Description
index
int
Returns
Type
Description

getCategoriesBuilder(int index)

  public 
  
 WindowsUpdate 
 . 
 Category 
 . 
 Builder 
  
 getCategoriesBuilder 
 ( 
 int 
  
 index 
 ) 
 

The list of categories to which the update belongs.

repeated .grafeas.v1.WindowsUpdate.Category categories = 4;

Parameter
Name
Description
index
int
Returns
Type
Description

getCategoriesBuilderList()

  public 
  
 List<WindowsUpdate 
 . 
 Category 
 . 
 Builder 
>  
 getCategoriesBuilderList 
 () 
 

The list of categories to which the update belongs.

repeated .grafeas.v1.WindowsUpdate.Category categories = 4;

Returns
Type
Description

getCategoriesCount()

  public 
  
 int 
  
 getCategoriesCount 
 () 
 

The list of categories to which the update belongs.

repeated .grafeas.v1.WindowsUpdate.Category categories = 4;

Returns
Type
Description
int

getCategoriesList()

  public 
  
 List<WindowsUpdate 
 . 
 Category 
>  
 getCategoriesList 
 () 
 

The list of categories to which the update belongs.

repeated .grafeas.v1.WindowsUpdate.Category categories = 4;

Returns
Type
Description

getCategoriesOrBuilder(int index)

  public 
  
 WindowsUpdate 
 . 
 CategoryOrBuilder 
  
 getCategoriesOrBuilder 
 ( 
 int 
  
 index 
 ) 
 

The list of categories to which the update belongs.

repeated .grafeas.v1.WindowsUpdate.Category categories = 4;

Parameter
Name
Description
index
int
Returns
Type
Description

getCategoriesOrBuilderList()

  public 
  
 List 
< ? 
  
 extends 
  
 WindowsUpdate 
 . 
 CategoryOrBuilder 
>  
 getCategoriesOrBuilderList 
 () 
 

The list of categories to which the update belongs.

repeated .grafeas.v1.WindowsUpdate.Category categories = 4;

Returns
Type
Description
List < ? extends io.grafeas.v1.WindowsUpdate.CategoryOrBuilder >

getDefaultInstanceForType()

  public 
  
 WindowsUpdate 
  
 getDefaultInstanceForType 
 () 
 
Returns
Type
Description

getDescription()

  public 
  
 String 
  
 getDescription 
 () 
 

The localized description of the update.

string description = 3;

Returns
Type
Description

The description.

getDescriptionBytes()

  public 
  
 ByteString 
  
 getDescriptionBytes 
 () 
 

The localized description of the update.

string description = 3;

Returns
Type
Description

The bytes for description.

getDescriptorForType()

  public 
  
 Descriptors 
 . 
 Descriptor 
  
 getDescriptorForType 
 () 
 
Returns
Type
Description
Overrides

getIdentity()

  public 
  
 WindowsUpdate 
 . 
 Identity 
  
 getIdentity 
 () 
 

Required - The unique identifier for the update.

.grafeas.v1.WindowsUpdate.Identity identity = 1;

Returns
Type
Description

The identity.

getIdentityBuilder()

  public 
  
 WindowsUpdate 
 . 
 Identity 
 . 
 Builder 
  
 getIdentityBuilder 
 () 
 

Required - The unique identifier for the update.

.grafeas.v1.WindowsUpdate.Identity identity = 1;

Returns
Type
Description

getIdentityOrBuilder()

  public 
  
 WindowsUpdate 
 . 
 IdentityOrBuilder 
  
 getIdentityOrBuilder 
 () 
 

Required - The unique identifier for the update.

.grafeas.v1.WindowsUpdate.Identity identity = 1;

Returns
Type
Description

getKbArticleIds(int index)

  public 
  
 String 
  
 getKbArticleIds 
 ( 
 int 
  
 index 
 ) 
 

The Microsoft Knowledge Base article IDs that are associated with the update.

repeated string kb_article_ids = 5;

Parameter
Name
Description
index
int

The index of the element to return.

Returns
Type
Description

The kbArticleIds at the given index.

getKbArticleIdsBytes(int index)

  public 
  
 ByteString 
  
 getKbArticleIdsBytes 
 ( 
 int 
  
 index 
 ) 
 

The Microsoft Knowledge Base article IDs that are associated with the update.

repeated string kb_article_ids = 5;

Parameter
Name
Description
index
int

The index of the value to return.

Returns
Type
Description

The bytes of the kbArticleIds at the given index.

getKbArticleIdsCount()

  public 
  
 int 
  
 getKbArticleIdsCount 
 () 
 

The Microsoft Knowledge Base article IDs that are associated with the update.

repeated string kb_article_ids = 5;

Returns
Type
Description
int

The count of kbArticleIds.

getKbArticleIdsList()

  public 
  
 ProtocolStringList 
  
 getKbArticleIdsList 
 () 
 

The Microsoft Knowledge Base article IDs that are associated with the update.

repeated string kb_article_ids = 5;

Returns
Type
Description

A list containing the kbArticleIds.

getLastPublishedTimestamp()

  public 
  
 Timestamp 
  
 getLastPublishedTimestamp 
 () 
 

The last published timestamp of the update.

.google.protobuf.Timestamp last_published_timestamp = 7;

Returns
Type
Description

The lastPublishedTimestamp.

getLastPublishedTimestampBuilder()

  public 
  
 Timestamp 
 . 
 Builder 
  
 getLastPublishedTimestampBuilder 
 () 
 

The last published timestamp of the update.

.google.protobuf.Timestamp last_published_timestamp = 7;

Returns
Type
Description

getLastPublishedTimestampOrBuilder()

  public 
  
 TimestampOrBuilder 
  
 getLastPublishedTimestampOrBuilder 
 () 
 

The last published timestamp of the update.

.google.protobuf.Timestamp last_published_timestamp = 7;

Returns
Type
Description

getSupportUrl()

  public 
  
 String 
  
 getSupportUrl 
 () 
 

The hyperlink to the support information for the update.

string support_url = 6;

Returns
Type
Description

The supportUrl.

getSupportUrlBytes()

  public 
  
 ByteString 
  
 getSupportUrlBytes 
 () 
 

The hyperlink to the support information for the update.

string support_url = 6;

Returns
Type
Description

The bytes for supportUrl.

getTitle()

  public 
  
 String 
  
 getTitle 
 () 
 

The localized title of the update.

string title = 2;

Returns
Type
Description

The title.

getTitleBytes()

  public 
  
 ByteString 
  
 getTitleBytes 
 () 
 

The localized title of the update.

string title = 2;

Returns
Type
Description

The bytes for title.

hasIdentity()

  public 
  
 boolean 
  
 hasIdentity 
 () 
 

Required - The unique identifier for the update.

.grafeas.v1.WindowsUpdate.Identity identity = 1;

Returns
Type
Description

Whether the identity field is set.

hasLastPublishedTimestamp()

  public 
  
 boolean 
  
 hasLastPublishedTimestamp 
 () 
 

The last published timestamp of the update.

.google.protobuf.Timestamp last_published_timestamp = 7;

Returns
Type
Description

Whether the lastPublishedTimestamp field is set.

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessageV3 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type
Description
Overrides

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type
Description
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(WindowsUpdate other)

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

mergeIdentity(WindowsUpdate.Identity value)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 mergeIdentity 
 ( 
 WindowsUpdate 
 . 
 Identity 
  
 value 
 ) 
 

Required - The unique identifier for the update.

.grafeas.v1.WindowsUpdate.Identity identity = 1;

Parameter
Name
Description
Returns
Type
Description

mergeLastPublishedTimestamp(Timestamp value)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 mergeLastPublishedTimestamp 
 ( 
 Timestamp 
  
 value 
 ) 
 

The last published timestamp of the update.

.google.protobuf.Timestamp last_published_timestamp = 7;

Parameter
Name
Description
value
Returns
Type
Description

mergeUnknownFields(UnknownFieldSet unknownFields)

  public 
  
 final 
  
 WindowsUpdate 
 . 
 Builder 
  
 mergeUnknownFields 
 ( 
 UnknownFieldSet 
  
 unknownFields 
 ) 
 
Parameter
Name
Description
unknownFields
Returns
Type
Description
Overrides

removeCategories(int index)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 removeCategories 
 ( 
 int 
  
 index 
 ) 
 

The list of categories to which the update belongs.

repeated .grafeas.v1.WindowsUpdate.Category categories = 4;

Parameter
Name
Description
index
int
Returns
Type
Description

setCategories(int index, WindowsUpdate.Category value)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 setCategories 
 ( 
 int 
  
 index 
 , 
  
 WindowsUpdate 
 . 
 Category 
  
 value 
 ) 
 

The list of categories to which the update belongs.

repeated .grafeas.v1.WindowsUpdate.Category categories = 4;

Parameters
Name
Description
index
int
Returns
Type
Description

setCategories(int index, WindowsUpdate.Category.Builder builderForValue)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 setCategories 
 ( 
 int 
  
 index 
 , 
  
 WindowsUpdate 
 . 
 Category 
 . 
 Builder 
  
 builderForValue 
 ) 
 

The list of categories to which the update belongs.

repeated .grafeas.v1.WindowsUpdate.Category categories = 4;

Parameters
Name
Description
index
int
Returns
Type
Description

setDescription(String value)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 setDescription 
 ( 
 String 
  
 value 
 ) 
 

The localized description of the update.

string description = 3;

Parameter
Name
Description
value
String

The description to set.

Returns
Type
Description

This builder for chaining.

setDescriptionBytes(ByteString value)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 setDescriptionBytes 
 ( 
 ByteString 
  
 value 
 ) 
 

The localized description of the update.

string description = 3;

Parameter
Name
Description
value
ByteString

The bytes for description to set.

Returns
Type
Description

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 setField 
 ( 
 Descriptors 
 . 
 FieldDescriptor 
  
 field 
 , 
  
 Object 
  
 value 
 ) 
 
Parameters
Name
Description
value
Returns
Type
Description
Overrides

setIdentity(WindowsUpdate.Identity value)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 setIdentity 
 ( 
 WindowsUpdate 
 . 
 Identity 
  
 value 
 ) 
 

Required - The unique identifier for the update.

.grafeas.v1.WindowsUpdate.Identity identity = 1;

Parameter
Name
Description
Returns
Type
Description

setIdentity(WindowsUpdate.Identity.Builder builderForValue)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 setIdentity 
 ( 
 WindowsUpdate 
 . 
 Identity 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Required - The unique identifier for the update.

.grafeas.v1.WindowsUpdate.Identity identity = 1;

Parameter
Name
Description
Returns
Type
Description

setKbArticleIds(int index, String value)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 setKbArticleIds 
 ( 
 int 
  
 index 
 , 
  
 String 
  
 value 
 ) 
 

The Microsoft Knowledge Base article IDs that are associated with the update.

repeated string kb_article_ids = 5;

Parameters
Name
Description
index
int

The index to set the value at.

value
String

The kbArticleIds to set.

Returns
Type
Description

This builder for chaining.

setLastPublishedTimestamp(Timestamp value)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 setLastPublishedTimestamp 
 ( 
 Timestamp 
  
 value 
 ) 
 

The last published timestamp of the update.

.google.protobuf.Timestamp last_published_timestamp = 7;

Parameter
Name
Description
value
Returns
Type
Description

setLastPublishedTimestamp(Timestamp.Builder builderForValue)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 setLastPublishedTimestamp 
 ( 
 Timestamp 
 . 
 Builder 
  
 builderForValue 
 ) 
 

The last published timestamp of the update.

.google.protobuf.Timestamp last_published_timestamp = 7;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 setRepeatedField 
 ( 
 Descriptors 
 . 
 FieldDescriptor 
  
 field 
 , 
  
 int 
  
 index 
 , 
  
 Object 
  
 value 
 ) 
 
Parameters
Name
Description
index
int
value
Returns
Type
Description
Overrides

setSupportUrl(String value)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 setSupportUrl 
 ( 
 String 
  
 value 
 ) 
 

The hyperlink to the support information for the update.

string support_url = 6;

Parameter
Name
Description
value
String

The supportUrl to set.

Returns
Type
Description

This builder for chaining.

setSupportUrlBytes(ByteString value)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 setSupportUrlBytes 
 ( 
 ByteString 
  
 value 
 ) 
 

The hyperlink to the support information for the update.

string support_url = 6;

Parameter
Name
Description
value
ByteString

The bytes for supportUrl to set.

Returns
Type
Description

This builder for chaining.

setTitle(String value)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 setTitle 
 ( 
 String 
  
 value 
 ) 
 

The localized title of the update.

string title = 2;

Parameter
Name
Description
value
String

The title to set.

Returns
Type
Description

This builder for chaining.

setTitleBytes(ByteString value)

  public 
  
 WindowsUpdate 
 . 
 Builder 
  
 setTitleBytes 
 ( 
 ByteString 
  
 value 
 ) 
 

The localized title of the update.

string title = 2;

Parameter
Name
Description
value
ByteString

The bytes for title to set.

Returns
Type
Description

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

  public 
  
 final 
  
 WindowsUpdate 
 . 
 Builder 
  
 setUnknownFields 
 ( 
 UnknownFieldSet 
  
 unknownFields 
 ) 
 
Parameter
Name
Description
unknownFields
Returns
Type
Description
Overrides
Design a Mobile Site
View Site in Mobile | Classic
Share by: