Class SecretOccurrence.Builder (2.63.0)

public static final class SecretOccurrence.Builder extends GeneratedMessageV3.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
Descriptor

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

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

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
value SecretLocation
Returns
Type Description
SecretOccurrence.Builder

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 SecretLocation.Builder
Returns
Type Description
SecretOccurrence.Builder

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
value SecretLocation
Returns
Type Description
SecretOccurrence.Builder

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 SecretLocation.Builder
Returns
Type Description
SecretOccurrence.Builder

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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 SecretStatus
Returns
Type Description
SecretOccurrence.Builder

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 SecretStatus.Builder
Returns
Type Description
SecretOccurrence.Builder

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 SecretStatus
Returns
Type Description
SecretOccurrence.Builder

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 SecretStatus.Builder
Returns
Type Description
SecretOccurrence.Builder

addStatusesBuilder()

public SecretStatus.Builder addStatusesBuilder()

Status of the secret.

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

Returns
Type Description
SecretStatus.Builder

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

build()

public SecretOccurrence build()
Returns
Type Description
SecretOccurrence

buildPartial()

public SecretOccurrence buildPartial()
Returns
Type Description
SecretOccurrence

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKind()

public SecretOccurrence.Builder clearKind()

Type of secret.

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

Returns
Type Description
SecretOccurrence.Builder

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStatuses()

public SecretOccurrence.Builder clearStatuses()

Status of the secret.

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

Returns
Type Description
SecretOccurrence.Builder

clone()

public SecretOccurrence.Builder clone()
Returns
Type Description
SecretOccurrence.Builder
Overrides

getDefaultInstanceForType()

public SecretOccurrence getDefaultInstanceForType()
Returns
Type Description
SecretOccurrence

getDescriptorForType()

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

getKind()

public SecretKind getKind()

Type of secret.

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

Returns
Type Description
SecretKind

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
SecretLocation

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

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

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
List<SecretLocation>

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
SecretLocationOrBuilder

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
SecretStatus

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

getStatusesBuilderList()

public List<SecretStatus.Builder> getStatusesBuilderList()

Status of the secret.

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

Returns
Type Description
List<Builder>

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
List<SecretStatus>

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
SecretStatusOrBuilder

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>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(SecretOccurrence other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

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
value SecretLocation
Returns
Type Description
SecretOccurrence.Builder

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 SecretLocation.Builder
Returns
Type Description
SecretOccurrence.Builder

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

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

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 SecretStatus
Returns
Type Description
SecretOccurrence.Builder

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 SecretStatus.Builder
Returns
Type Description
SecretOccurrence.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final SecretOccurrence.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SecretOccurrence.Builder
Overrides