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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AdmissionWhitelistPattern.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public AdmissionWhitelistPattern build()
Returns
buildPartial()
public AdmissionWhitelistPattern buildPartial()
Returns
clear()
public AdmissionWhitelistPattern.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public AdmissionWhitelistPattern.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public AdmissionWhitelistPattern.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public AdmissionWhitelistPattern.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public AdmissionWhitelistPattern getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Type | Description |
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
Type | Description |
ByteString | The bytes for namePattern.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(AdmissionWhitelistPattern other)
public AdmissionWhitelistPattern.Builder mergeFrom(AdmissionWhitelistPattern other)
Parameter
Returns
public AdmissionWhitelistPattern.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AdmissionWhitelistPattern.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AdmissionWhitelistPattern.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public AdmissionWhitelistPattern.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Name | Description |
value | String
The namePattern to set.
|
Returns
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
Name | Description |
value | ByteString
The bytes for namePattern to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AdmissionWhitelistPattern.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AdmissionWhitelistPattern.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides