Class SecretOccurrence.Builder (2.89.0)

  public 
  
 static 
  
 final 
  
 class 
 SecretOccurrence 
 . 
 Builder 
  
 extends 
  
 GeneratedMessage 
 . 
 Builder<SecretOccurrence 
 . 
 Builder 
>  
 implements 
  
 SecretOccurrenceOrBuilder 
 

The occurrence provides details of a secret.

Protobuf type grafeas.v1.SecretOccurrence

Static Methods

getDescriptor()

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

Methods

addAllLocations(Iterable<? extends SecretLocation> values)

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 addAllLocations 
 ( 
 Iterable 
< ? 
  
 extends 
  
 SecretLocation 
>  
 values 
 ) 
 

Locations where the secret is detected.

repeated .grafeas.v1.SecretLocation locations = 2 [(.google.api.field_behavior) = OPTIONAL];

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

addAllStatuses(Iterable<? extends SecretStatus> values)

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 addAllStatuses 
 ( 
 Iterable 
< ? 
  
 extends 
  
 SecretStatus 
>  
 values 
 ) 
 

Status of the secret.

repeated .grafeas.v1.SecretStatus statuses = 3 [(.google.api.field_behavior) = OPTIONAL];

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

addLocations(int index, SecretLocation value)

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 addLocations 
 ( 
 int 
  
 index 
 , 
  
 SecretLocation 
  
 value 
 ) 
 

Locations where the secret is detected.

repeated .grafeas.v1.SecretLocation locations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name
Description
index
int
Returns
Type
Description

addLocations(int index, SecretLocation.Builder builderForValue)

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 addLocations 
 ( 
 int 
  
 index 
 , 
  
 SecretLocation 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Locations where the secret is detected.

repeated .grafeas.v1.SecretLocation locations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name
Description
index
int
builderForValue
Returns
Type
Description

addLocations(SecretLocation value)

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 addLocations 
 ( 
 SecretLocation 
  
 value 
 ) 
 

Locations where the secret is detected.

repeated .grafeas.v1.SecretLocation locations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name
Description
Returns
Type
Description

addLocations(SecretLocation.Builder builderForValue)

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 addLocations 
 ( 
 SecretLocation 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Locations where the secret is detected.

repeated .grafeas.v1.SecretLocation locations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name
Description
builderForValue
Returns
Type
Description

addLocationsBuilder()

  public 
  
 SecretLocation 
 . 
 Builder 
  
 addLocationsBuilder 
 () 
 

Locations where the secret is detected.

repeated .grafeas.v1.SecretLocation locations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

addLocationsBuilder(int index)

  public 
  
 SecretLocation 
 . 
 Builder 
  
 addLocationsBuilder 
 ( 
 int 
  
 index 
 ) 
 

Locations where the secret is detected.

repeated .grafeas.v1.SecretLocation locations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name
Description
index
int
Returns
Type
Description

addStatuses(int index, SecretStatus value)

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 addStatuses 
 ( 
 int 
  
 index 
 , 
  
 SecretStatus 
  
 value 
 ) 
 

Status of the secret.

repeated .grafeas.v1.SecretStatus statuses = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name
Description
index
int
value
Returns
Type
Description

addStatuses(int index, SecretStatus.Builder builderForValue)

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 addStatuses 
 ( 
 int 
  
 index 
 , 
  
 SecretStatus 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Status of the secret.

repeated .grafeas.v1.SecretStatus statuses = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name
Description
index
int
builderForValue
Returns
Type
Description

addStatuses(SecretStatus value)

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 addStatuses 
 ( 
 SecretStatus 
  
 value 
 ) 
 

Status of the secret.

repeated .grafeas.v1.SecretStatus statuses = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name
Description
value
Returns
Type
Description

addStatuses(SecretStatus.Builder builderForValue)

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 addStatuses 
 ( 
 SecretStatus 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Status of the secret.

repeated .grafeas.v1.SecretStatus statuses = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name
Description
builderForValue
Returns
Type
Description

addStatusesBuilder()

  public 
  
 SecretStatus 
 . 
 Builder 
  
 addStatusesBuilder 
 () 
 

Status of the secret.

repeated .grafeas.v1.SecretStatus statuses = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

addStatusesBuilder(int index)

  public 
  
 SecretStatus 
 . 
 Builder 
  
 addStatusesBuilder 
 ( 
 int 
  
 index 
 ) 
 

Status of the secret.

repeated .grafeas.v1.SecretStatus statuses = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name
Description
index
int
Returns
Type
Description

build()

  public 
  
 SecretOccurrence 
  
 build 
 () 
 
Returns
Type
Description

buildPartial()

  public 
  
 SecretOccurrence 
  
 buildPartial 
 () 
 
Returns
Type
Description

clear()

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 clear 
 () 
 
Returns
Type
Description
Overrides

clearData()

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 clearData 
 () 
 

Scan result of the secret.

.google.protobuf.Any data = 4;

Returns
Type
Description

clearDigest()

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 clearDigest 
 () 
 

Hash value, typically a digest for the secret data, that allows unique identification of a specific secret.

.grafeas.v1.Digest digest = 5;

Returns
Type
Description

clearKind()

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 clearKind 
 () 
 

Type of secret.

.grafeas.v1.SecretKind kind = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type
Description

This builder for chaining.

clearLocations()

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 clearLocations 
 () 
 

Locations where the secret is detected.

repeated .grafeas.v1.SecretLocation locations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

clearStatuses()

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 clearStatuses 
 () 
 

Status of the secret.

repeated .grafeas.v1.SecretStatus statuses = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

getData()

  public 
  
 Any 
  
 getData 
 () 
 

Scan result of the secret.

.google.protobuf.Any data = 4;

Returns
Type
Description
Any

The data.

getDataBuilder()

  public 
  
 Any 
 . 
 Builder 
  
 getDataBuilder 
 () 
 

Scan result of the secret.

.google.protobuf.Any data = 4;

Returns
Type
Description

getDataOrBuilder()

  public 
  
 AnyOrBuilder 
  
 getDataOrBuilder 
 () 
 

Scan result of the secret.

.google.protobuf.Any data = 4;

Returns
Type
Description

getDefaultInstanceForType()

  public 
  
 SecretOccurrence 
  
 getDefaultInstanceForType 
 () 
 
Returns
Type
Description

getDescriptorForType()

  public 
  
 Descriptors 
 . 
 Descriptor 
  
 getDescriptorForType 
 () 
 
Returns
Type
Description
Overrides

getDigest()

  public 
  
 Digest 
  
 getDigest 
 () 
 

Hash value, typically a digest for the secret data, that allows unique identification of a specific secret.

.grafeas.v1.Digest digest = 5;

Returns
Type
Description

The digest.

getDigestBuilder()

  public 
  
 Digest 
 . 
 Builder 
  
 getDigestBuilder 
 () 
 

Hash value, typically a digest for the secret data, that allows unique identification of a specific secret.

.grafeas.v1.Digest digest = 5;

Returns
Type
Description

getDigestOrBuilder()

  public 
  
 DigestOrBuilder 
  
 getDigestOrBuilder 
 () 
 

Hash value, typically a digest for the secret data, that allows unique identification of a specific secret.

.grafeas.v1.Digest digest = 5;

Returns
Type
Description

getKind()

  public 
  
 SecretKind 
  
 getKind 
 () 
 

Type of secret.

.grafeas.v1.SecretKind kind = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type
Description

The kind.

getKindValue()

  public 
  
 int 
  
 getKindValue 
 () 
 

Type of secret.

.grafeas.v1.SecretKind kind = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type
Description
int

The enum numeric value on the wire for kind.

getLocations(int index)

  public 
  
 SecretLocation 
  
 getLocations 
 ( 
 int 
  
 index 
 ) 
 

Locations where the secret is detected.

repeated .grafeas.v1.SecretLocation locations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name
Description
index
int
Returns
Type
Description

getLocationsBuilder(int index)

  public 
  
 SecretLocation 
 . 
 Builder 
  
 getLocationsBuilder 
 ( 
 int 
  
 index 
 ) 
 

Locations where the secret is detected.

repeated .grafeas.v1.SecretLocation locations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name
Description
index
int
Returns
Type
Description

getLocationsBuilderList()

  public 
  
 List<SecretLocation 
 . 
 Builder 
>  
 getLocationsBuilderList 
 () 
 

Locations where the secret is detected.

repeated .grafeas.v1.SecretLocation locations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

getLocationsCount()

  public 
  
 int 
  
 getLocationsCount 
 () 
 

Locations where the secret is detected.

repeated .grafeas.v1.SecretLocation locations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description
int

getLocationsList()

  public 
  
 List<SecretLocation> 
  
 getLocationsList 
 () 
 

Locations where the secret is detected.

repeated .grafeas.v1.SecretLocation locations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

getLocationsOrBuilder(int index)

  public 
  
 SecretLocationOrBuilder 
  
 getLocationsOrBuilder 
 ( 
 int 
  
 index 
 ) 
 

Locations where the secret is detected.

repeated .grafeas.v1.SecretLocation locations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name
Description
index
int
Returns
Type
Description

getLocationsOrBuilderList()

  public 
  
 List 
< ? 
  
 extends 
  
 SecretLocationOrBuilder 
>  
 getLocationsOrBuilderList 
 () 
 

Locations where the secret is detected.

repeated .grafeas.v1.SecretLocation locations = 2 [(.google.api.field_behavior) = OPTIONAL];

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

getStatuses(int index)

  public 
  
 SecretStatus 
  
 getStatuses 
 ( 
 int 
  
 index 
 ) 
 

Status of the secret.

repeated .grafeas.v1.SecretStatus statuses = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name
Description
index
int
Returns
Type
Description

getStatusesBuilder(int index)

  public 
  
 SecretStatus 
 . 
 Builder 
  
 getStatusesBuilder 
 ( 
 int 
  
 index 
 ) 
 

Status of the secret.

repeated .grafeas.v1.SecretStatus statuses = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name
Description
index
int
Returns
Type
Description

getStatusesBuilderList()

  public 
  
 List<SecretStatus 
 . 
 Builder 
>  
 getStatusesBuilderList 
 () 
 

Status of the secret.

repeated .grafeas.v1.SecretStatus statuses = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

getStatusesCount()

  public 
  
 int 
  
 getStatusesCount 
 () 
 

Status of the secret.

repeated .grafeas.v1.SecretStatus statuses = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description
int

getStatusesList()

  public 
  
 List<SecretStatus> 
  
 getStatusesList 
 () 
 

Status of the secret.

repeated .grafeas.v1.SecretStatus statuses = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

getStatusesOrBuilder(int index)

  public 
  
 SecretStatusOrBuilder 
  
 getStatusesOrBuilder 
 ( 
 int 
  
 index 
 ) 
 

Status of the secret.

repeated .grafeas.v1.SecretStatus statuses = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name
Description
index
int
Returns
Type
Description

getStatusesOrBuilderList()

  public 
  
 List 
< ? 
  
 extends 
  
 SecretStatusOrBuilder 
>  
 getStatusesOrBuilderList 
 () 
 

Status of the secret.

repeated .grafeas.v1.SecretStatus statuses = 3 [(.google.api.field_behavior) = OPTIONAL];

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

hasData()

  public 
  
 boolean 
  
 hasData 
 () 
 

Scan result of the secret.

.google.protobuf.Any data = 4;

Returns
Type
Description

Whether the data field is set.

hasDigest()

  public 
  
 boolean 
  
 hasDigest 
 () 
 

Hash value, typically a digest for the secret data, that allows unique identification of a specific secret.

.grafeas.v1.Digest digest = 5;

Returns
Type
Description

Whether the digest field is set.

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessage 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type
Description
Overrides

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type
Description
Overrides

mergeData(Any value)

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 mergeData 
 ( 
 Any 
  
 value 
 ) 
 

Scan result of the secret.

.google.protobuf.Any data = 4;

Parameter
Name
Description
value
Any
Returns
Type
Description

mergeDigest(Digest value)

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 mergeDigest 
 ( 
 Digest 
  
 value 
 ) 
 

Hash value, typically a digest for the secret data, that allows unique identification of a specific secret.

.grafeas.v1.Digest digest = 5;

Parameter
Name
Description
value
Returns
Type
Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(SecretOccurrence other)

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

removeLocations(int index)

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 removeLocations 
 ( 
 int 
  
 index 
 ) 
 

Locations where the secret is detected.

repeated .grafeas.v1.SecretLocation locations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name
Description
index
int
Returns
Type
Description

removeStatuses(int index)

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 removeStatuses 
 ( 
 int 
  
 index 
 ) 
 

Status of the secret.

repeated .grafeas.v1.SecretStatus statuses = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name
Description
index
int
Returns
Type
Description

setData(Any value)

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 setData 
 ( 
 Any 
  
 value 
 ) 
 

Scan result of the secret.

.google.protobuf.Any data = 4;

Parameter
Name
Description
value
Any
Returns
Type
Description

setData(Any.Builder builderForValue)

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 setData 
 ( 
 Any 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Scan result of the secret.

.google.protobuf.Any data = 4;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setDigest(Digest value)

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 setDigest 
 ( 
 Digest 
  
 value 
 ) 
 

Hash value, typically a digest for the secret data, that allows unique identification of a specific secret.

.grafeas.v1.Digest digest = 5;

Parameter
Name
Description
value
Returns
Type
Description

setDigest(Digest.Builder builderForValue)

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 setDigest 
 ( 
 Digest 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Hash value, typically a digest for the secret data, that allows unique identification of a specific secret.

.grafeas.v1.Digest digest = 5;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setKind(SecretKind value)

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 setKind 
 ( 
 SecretKind 
  
 value 
 ) 
 

Type of secret.

.grafeas.v1.SecretKind kind = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name
Description
value
SecretKind

The kind to set.

Returns
Type
Description

This builder for chaining.

setKindValue(int value)

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 setKindValue 
 ( 
 int 
  
 value 
 ) 
 

Type of secret.

.grafeas.v1.SecretKind kind = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name
Description
value
int

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

Returns
Type
Description

This builder for chaining.

setLocations(int index, SecretLocation value)

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 setLocations 
 ( 
 int 
  
 index 
 , 
  
 SecretLocation 
  
 value 
 ) 
 

Locations where the secret is detected.

repeated .grafeas.v1.SecretLocation locations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name
Description
index
int
Returns
Type
Description

setLocations(int index, SecretLocation.Builder builderForValue)

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 setLocations 
 ( 
 int 
  
 index 
 , 
  
 SecretLocation 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Locations where the secret is detected.

repeated .grafeas.v1.SecretLocation locations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name
Description
index
int
builderForValue
Returns
Type
Description

setStatuses(int index, SecretStatus value)

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 setStatuses 
 ( 
 int 
  
 index 
 , 
  
 SecretStatus 
  
 value 
 ) 
 

Status of the secret.

repeated .grafeas.v1.SecretStatus statuses = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name
Description
index
int
value
Returns
Type
Description

setStatuses(int index, SecretStatus.Builder builderForValue)

  public 
  
 SecretOccurrence 
 . 
 Builder 
  
 setStatuses 
 ( 
 int 
  
 index 
 , 
  
 SecretStatus 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Status of the secret.

repeated .grafeas.v1.SecretStatus statuses = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name
Description
index
int
builderForValue
Returns
Type
Description
Design a Mobile Site
View Site in Mobile | Classic
Share by: