Class AdmissionWhitelistPattern.Builder (1.34.0)

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

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

Protobuf type google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AdmissionWhitelistPattern build()
Returns
TypeDescription
AdmissionWhitelistPattern

buildPartial()

public AdmissionWhitelistPattern buildPartial()
Returns
TypeDescription
AdmissionWhitelistPattern

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNamePattern()

public AdmissionWhitelistPattern.Builder clearNamePattern()

An image name pattern to allowlist, in the form registry/path/to/image. This supports a trailing as a wildcard, but this is allowed only in text after the registry/ part. wildcard does not match /, i.e., gcr.io/nginx matches gcr.io/nginx@latest, but it does not match gcr.io/nginx/image. This also supports a trailing wildcard which matches subdirectories, i.e., gcr.io/nginx* matches gcr.io/nginx/image.

string name_pattern = 1;

Returns
TypeDescription
AdmissionWhitelistPattern.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public AdmissionWhitelistPattern getDefaultInstanceForType()
Returns
TypeDescription
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 as a wildcard, but this is allowed only in text after the registry/ part. wildcard does not match /, i.e., gcr.io/nginx matches gcr.io/nginx@latest, but it does not match gcr.io/nginx/image. This also supports a trailing wildcard which matches subdirectories, i.e., gcr.io/nginx* matches gcr.io/nginx/image.

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 as a wildcard, but this is allowed only in text after the registry/ part. wildcard does not match /, i.e., gcr.io/nginx matches gcr.io/nginx@latest, but it does not match gcr.io/nginx/image. This also supports a trailing wildcard which matches subdirectories, i.e., gcr.io/nginx* matches gcr.io/nginx/image.

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(AdmissionWhitelistPattern other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setNamePattern(String value)

public AdmissionWhitelistPattern.Builder setNamePattern(String value)

An image name pattern to allowlist, in the form registry/path/to/image. This supports a trailing as a wildcard, but this is allowed only in text after the registry/ part. wildcard does not match /, i.e., gcr.io/nginx matches gcr.io/nginx@latest, but it does not match gcr.io/nginx/image. This also supports a trailing wildcard which matches subdirectories, i.e., gcr.io/nginx* matches gcr.io/nginx/image.

string name_pattern = 1;

Parameter
NameDescription
valueString

The namePattern to set.

Returns
TypeDescription
AdmissionWhitelistPattern.Builder

This builder for chaining.

setNamePatternBytes(ByteString value)

public AdmissionWhitelistPattern.Builder setNamePatternBytes(ByteString value)

An image name pattern to allowlist, in the form registry/path/to/image. This supports a trailing as a wildcard, but this is allowed only in text after the registry/ part. wildcard does not match /, i.e., gcr.io/nginx matches gcr.io/nginx@latest, but it does not match gcr.io/nginx/image. This also supports a trailing wildcard which matches subdirectories, i.e., gcr.io/nginx* matches gcr.io/nginx/image.

string name_pattern = 1;

Parameter
NameDescription
valueByteString

The bytes for namePattern to set.

Returns
TypeDescription
AdmissionWhitelistPattern.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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