Class Resources.Attestor (1.17.0)

public static final class Resources.Attestor extends GeneratedMessageV3 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 Fields

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

USER_OWNED_GRAFEAS_NOTE_FIELD_NUMBER

public static final int USER_OWNED_GRAFEAS_NOTE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Resources.Attestor getDefaultInstance()
Returns
TypeDescription
Resources.Attestor

getDescriptor()

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

newBuilder()

public static Resources.Attestor.Builder newBuilder()
Returns
TypeDescription
Resources.Attestor.Builder

newBuilder(Resources.Attestor prototype)

public static Resources.Attestor.Builder newBuilder(Resources.Attestor prototype)
Parameter
NameDescription
prototypeResources.Attestor
Returns
TypeDescription
Resources.Attestor.Builder

parseDelimitedFrom(InputStream input)

public static Resources.Attestor parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Resources.Attestor
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Resources.Attestor parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Resources.Attestor
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Resources.Attestor parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Resources.Attestor
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Resources.Attestor parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Resources.Attestor
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Resources.Attestor parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Resources.Attestor
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Resources.Attestor parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Resources.Attestor
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Resources.Attestor parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Resources.Attestor
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Resources.Attestor parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Resources.Attestor
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Resources.Attestor parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Resources.Attestor
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Resources.Attestor parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Resources.Attestor
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Resources.Attestor parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Resources.Attestor
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Resources.Attestor parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Resources.Attestor
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Resources.Attestor> parser()
Returns
TypeDescription
Parser<Attestor>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

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.

getParserForType()

public Parser<Resources.Attestor> getParserForType()
Returns
TypeDescription
Parser<Attestor>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

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.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Resources.Attestor.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Resources.Attestor.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException