Class Attestor.Builder (1.12.0)

public static final class Attestor.Builder extends GeneratedMessageV3.Builder<Attestor.Builder> implements AttestorOrBuilder

An attestor that attests to container image artifacts. An existing attestor cannot be modified except where indicated.

Protobuf type google.cloud.binaryauthorization.v1beta1.Attestor

Implements

AttestorOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Attestor.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Attestor.Builder
Overrides

build()

public Attestor build()
Returns
TypeDescription
Attestor

buildPartial()

public Attestor buildPartial()
Returns
TypeDescription
Attestor

clear()

public Attestor.Builder clear()
Returns
TypeDescription
Attestor.Builder
Overrides

clearAttestorType()

public Attestor.Builder clearAttestorType()
Returns
TypeDescription
Attestor.Builder

clearDescription()

public Attestor.Builder clearDescription()

Optional. A descriptive comment. This field may be updated. The field may be displayed in chooser dialogs.

string description = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Attestor.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Attestor.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Attestor.Builder
Overrides

clearName()

public Attestor.Builder clearName()

Required. The resource name, in the format: projects/*/attestors/*. This field may not be updated.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Attestor.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Attestor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Attestor.Builder
Overrides

clearUpdateTime()

public Attestor.Builder clearUpdateTime()

Output only. Time when the attestor was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Attestor.Builder

clearUserOwnedDrydockNote()

public Attestor.Builder clearUserOwnedDrydockNote()

A Drydock ATTESTATION_AUTHORITY Note, created by the user.

.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3;

Returns
TypeDescription
Attestor.Builder

clone()

public Attestor.Builder clone()
Returns
TypeDescription
Attestor.Builder
Overrides

getAttestorTypeCase()

public Attestor.AttestorTypeCase getAttestorTypeCase()
Returns
TypeDescription
Attestor.AttestorTypeCase

getDefaultInstanceForType()

public Attestor getDefaultInstanceForType()
Returns
TypeDescription
Attestor

getDescription()

public String getDescription()

Optional. A descriptive comment. This field may be updated. The field may be displayed in chooser dialogs.

string description = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. A descriptive comment. This field may be updated. The field may be displayed in chooser dialogs.

string description = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The resource name, in the format: projects/*/attestors/*. This field may not be updated.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name, in the format: projects/*/attestors/*. This field may not be updated.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time when the attestor was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Time when the attestor was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time when the attestor was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getUserOwnedDrydockNote()

public UserOwnedDrydockNote getUserOwnedDrydockNote()

A Drydock ATTESTATION_AUTHORITY Note, created by the user.

.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3;

Returns
TypeDescription
UserOwnedDrydockNote

The userOwnedDrydockNote.

getUserOwnedDrydockNoteBuilder()

public UserOwnedDrydockNote.Builder getUserOwnedDrydockNoteBuilder()

A Drydock ATTESTATION_AUTHORITY Note, created by the user.

.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3;

Returns
TypeDescription
UserOwnedDrydockNote.Builder

getUserOwnedDrydockNoteOrBuilder()

public UserOwnedDrydockNoteOrBuilder getUserOwnedDrydockNoteOrBuilder()

A Drydock ATTESTATION_AUTHORITY Note, created by the user.

.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3;

Returns
TypeDescription
UserOwnedDrydockNoteOrBuilder

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Time when the attestor was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

hasUserOwnedDrydockNote()

public boolean hasUserOwnedDrydockNote()

A Drydock ATTESTATION_AUTHORITY Note, created by the user.

.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3;

Returns
TypeDescription
boolean

Whether the userOwnedDrydockNote field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Attestor other)

public Attestor.Builder mergeFrom(Attestor other)
Parameter
NameDescription
otherAttestor
Returns
TypeDescription
Attestor.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Attestor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Attestor.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Attestor.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Attestor.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Attestor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Attestor.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Attestor.Builder mergeUpdateTime(Timestamp value)

Output only. Time when the attestor was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Attestor.Builder

mergeUserOwnedDrydockNote(UserOwnedDrydockNote value)

public Attestor.Builder mergeUserOwnedDrydockNote(UserOwnedDrydockNote value)

A Drydock ATTESTATION_AUTHORITY Note, created by the user.

.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3;

Parameter
NameDescription
valueUserOwnedDrydockNote
Returns
TypeDescription
Attestor.Builder

setDescription(String value)

public Attestor.Builder setDescription(String value)

Optional. A descriptive comment. This field may be updated. The field may be displayed in chooser dialogs.

string description = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Attestor.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Attestor.Builder setDescriptionBytes(ByteString value)

Optional. A descriptive comment. This field may be updated. The field may be displayed in chooser dialogs.

string description = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Attestor.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Attestor.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Attestor.Builder
Overrides

setName(String value)

public Attestor.Builder setName(String value)

Required. The resource name, in the format: projects/*/attestors/*. This field may not be updated.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Attestor.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Attestor.Builder setNameBytes(ByteString value)

Required. The resource name, in the format: projects/*/attestors/*. This field may not be updated.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Attestor.Builder

This builder for chaining.

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

public Attestor.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Attestor.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Attestor.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Attestor.Builder
Overrides

setUpdateTime(Timestamp value)

public Attestor.Builder setUpdateTime(Timestamp value)

Output only. Time when the attestor was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Attestor.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Attestor.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Time when the attestor was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Attestor.Builder

setUserOwnedDrydockNote(UserOwnedDrydockNote value)

public Attestor.Builder setUserOwnedDrydockNote(UserOwnedDrydockNote value)

A Drydock ATTESTATION_AUTHORITY Note, created by the user.

.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3;

Parameter
NameDescription
valueUserOwnedDrydockNote
Returns
TypeDescription
Attestor.Builder

setUserOwnedDrydockNote(UserOwnedDrydockNote.Builder builderForValue)

public Attestor.Builder setUserOwnedDrydockNote(UserOwnedDrydockNote.Builder builderForValue)

A Drydock ATTESTATION_AUTHORITY Note, created by the user.

.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3;

Parameter
NameDescription
builderForValueUserOwnedDrydockNote.Builder
Returns
TypeDescription
Attestor.Builder