Class Resources.AdmissionWhitelistPattern.Builder (1.19.0)

public static final class Resources.AdmissionWhitelistPattern.Builder extends GeneratedMessageV3.Builder<Resources.AdmissionWhitelistPattern.Builder> implements Resources.AdmissionWhitelistPatternOrBuilder

An admission allowlist pattern exempts images from checks by admission rules.

Protobuf type google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNamePattern()

public Resources.AdmissionWhitelistPattern.Builder clearNamePattern()

An image name pattern to allowlist, in the form registry/path/to/image. This supports a trailing wildcard, but this is allowed only in text after the registry/ part. This also supports a trailing * wildcard which matches subdirectories of a given entry.

string name_pattern = 1;

Returns
TypeDescription
Resources.AdmissionWhitelistPattern.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public Resources.AdmissionWhitelistPattern getDefaultInstanceForType()
Returns
TypeDescription
Resources.AdmissionWhitelistPattern

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNamePattern()

public String getNamePattern()

An image name pattern to allowlist, in the form registry/path/to/image. This supports a trailing wildcard, but this is allowed only in text after the registry/ part. This also supports a trailing * wildcard which matches subdirectories of a given entry.

string name_pattern = 1;

Returns
TypeDescription
String

The namePattern.

getNamePatternBytes()

public ByteString getNamePatternBytes()

An image name pattern to allowlist, in the form registry/path/to/image. This supports a trailing wildcard, but this is allowed only in text after the registry/ part. This also supports a trailing * wildcard which matches subdirectories of a given entry.

string name_pattern = 1;

Returns
TypeDescription
ByteString

The bytes for namePattern.

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.AdmissionWhitelistPattern.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Resources.AdmissionWhitelistPattern.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

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

mergeFrom(Resources.AdmissionWhitelistPattern other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setNamePattern(String value)

public Resources.AdmissionWhitelistPattern.Builder setNamePattern(String value)

An image name pattern to allowlist, in the form registry/path/to/image. This supports a trailing wildcard, but this is allowed only in text after the registry/ part. This also supports a trailing * wildcard which matches subdirectories of a given entry.

string name_pattern = 1;

Parameter
NameDescription
valueString

The namePattern to set.

Returns
TypeDescription
Resources.AdmissionWhitelistPattern.Builder

This builder for chaining.

setNamePatternBytes(ByteString value)

public Resources.AdmissionWhitelistPattern.Builder setNamePatternBytes(ByteString value)

An image name pattern to allowlist, in the form registry/path/to/image. This supports a trailing wildcard, but this is allowed only in text after the registry/ part. This also supports a trailing * wildcard which matches subdirectories of a given entry.

string name_pattern = 1;

Parameter
NameDescription
valueByteString

The bytes for namePattern to set.

Returns
TypeDescription
Resources.AdmissionWhitelistPattern.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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