Class Resources.Attestor.Builder (1.18.0)

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

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

Protobuf type google.cloud.binaryauthorization.v1.Attestor

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Resources.Attestor build()
Returns
TypeDescription
Resources.Attestor

buildPartial()

public Resources.Attestor buildPartial()
Returns
TypeDescription
Resources.Attestor

clear()

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

clearAttestorType()

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

clearDescription()

public Resources.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
Resources.Attestor.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Resources.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
Resources.Attestor.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateTime()

public Resources.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
Resources.Attestor.Builder

clearUserOwnedGrafeasNote()

public Resources.Attestor.Builder clearUserOwnedGrafeasNote()

This specifies how an attestation will be read, and how it will be used during policy enforcement.

.google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3;

Returns
TypeDescription
Resources.Attestor.Builder

clone()

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

getAttestorTypeCase()

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

getDefaultInstanceForType()

public Resources.Attestor getDefaultInstanceForType()
Returns
TypeDescription
Resources.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

getUserOwnedGrafeasNote()

public Resources.UserOwnedGrafeasNote getUserOwnedGrafeasNote()

This specifies how an attestation will be read, and how it will be used during policy enforcement.

.google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3;

Returns
TypeDescription
Resources.UserOwnedGrafeasNote

The userOwnedGrafeasNote.

getUserOwnedGrafeasNoteBuilder()

public Resources.UserOwnedGrafeasNote.Builder getUserOwnedGrafeasNoteBuilder()

This specifies how an attestation will be read, and how it will be used during policy enforcement.

.google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3;

Returns
TypeDescription
Resources.UserOwnedGrafeasNote.Builder

getUserOwnedGrafeasNoteOrBuilder()

public Resources.UserOwnedGrafeasNoteOrBuilder getUserOwnedGrafeasNoteOrBuilder()

This specifies how an attestation will be read, and how it will be used during policy enforcement.

.google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3;

Returns
TypeDescription
Resources.UserOwnedGrafeasNoteOrBuilder

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.

hasUserOwnedGrafeasNote()

public boolean hasUserOwnedGrafeasNote()

This specifies how an attestation will be read, and how it will be used during policy enforcement.

.google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3;

Returns
TypeDescription
boolean

Whether the userOwnedGrafeasNote field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Resources.Attestor other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Resources.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
Resources.Attestor.Builder

mergeUserOwnedGrafeasNote(Resources.UserOwnedGrafeasNote value)

public Resources.Attestor.Builder mergeUserOwnedGrafeasNote(Resources.UserOwnedGrafeasNote value)

This specifies how an attestation will be read, and how it will be used during policy enforcement.

.google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3;

Parameter
NameDescription
valueResources.UserOwnedGrafeasNote
Returns
TypeDescription
Resources.Attestor.Builder

setDescription(String value)

public Resources.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
Resources.Attestor.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Resources.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
Resources.Attestor.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Resources.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
Resources.Attestor.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Resources.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
Resources.Attestor.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Resources.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
Resources.Attestor.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Resources.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
Resources.Attestor.Builder

setUserOwnedGrafeasNote(Resources.UserOwnedGrafeasNote value)

public Resources.Attestor.Builder setUserOwnedGrafeasNote(Resources.UserOwnedGrafeasNote value)

This specifies how an attestation will be read, and how it will be used during policy enforcement.

.google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3;

Parameter
NameDescription
valueResources.UserOwnedGrafeasNote
Returns
TypeDescription
Resources.Attestor.Builder

setUserOwnedGrafeasNote(Resources.UserOwnedGrafeasNote.Builder builderForValue)

public Resources.Attestor.Builder setUserOwnedGrafeasNote(Resources.UserOwnedGrafeasNote.Builder builderForValue)

This specifies how an attestation will be read, and how it will be used during policy enforcement.

.google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3;

Parameter
NameDescription
builderForValueResources.UserOwnedGrafeasNote.Builder
Returns
TypeDescription
Resources.Attestor.Builder