Package io.kubernetes.client.proto
Class V1Admission.AdmissionResponse
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.kubernetes.client.proto.V1Admission.AdmissionResponse
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V1Admission.AdmissionResponseOrBuilder,Serializable
- Enclosing class:
- V1Admission
public static final class V1Admission.AdmissionResponse
extends com.google.protobuf.GeneratedMessageV3
implements V1Admission.AdmissionResponseOrBuilder
AdmissionResponse describes an admission response.Protobuf type
k8s.io.api.admission.v1.AdmissionResponse- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAdmissionResponse describes an admission response.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final com.google.protobuf.Parser<V1Admission.AdmissionResponse>Deprecated.static final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanAuditAnnotations is an unstructured key value map set by remote admission controller (e.g.booleanbooleanAllowed indicates whether or not the admission request was permitted.Deprecated.intAuditAnnotations is an unstructured key value map set by remote admission controller (e.g.AuditAnnotations is an unstructured key value map set by remote admission controller (e.g.getAuditAnnotationsOrDefault(String key, String defaultValue) AuditAnnotations is an unstructured key value map set by remote admission controller (e.g.AuditAnnotations is an unstructured key value map set by remote admission controller (e.g.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<V1Admission.AdmissionResponse>com.google.protobuf.ByteStringgetPatch()The patch body.The type of Patch.com.google.protobuf.ByteStringThe type of Patch.intResult contains extra details into why an admission request was denied.Result contains extra details into why an admission request was denied.getUid()UID is an identifier for the individual request/response.com.google.protobuf.ByteStringUID is an identifier for the individual request/response.final com.google.protobuf.UnknownFieldSetgetWarnings(int index) warnings is a list of warning messages to return to the requesting API client.com.google.protobuf.ByteStringgetWarningsBytes(int index) warnings is a list of warning messages to return to the requesting API client.intwarnings is a list of warning messages to return to the requesting API client.com.google.protobuf.ProtocolStringListwarnings is a list of warning messages to return to the requesting API client.booleanAllowed indicates whether or not the admission request was permitted.inthashCode()booleanhasPatch()The patch body.booleanThe type of Patch.booleanResult contains extra details into why an admission request was denied.booleanhasUid()UID is an identifier for the individual request/response.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldinternalGetMapField(int number) final booleannewBuilder(V1Admission.AdmissionResponse prototype) protected V1Admission.AdmissionResponse.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<V1Admission.AdmissionResponse>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
Field Details
-
UID_FIELD_NUMBER
public static final int UID_FIELD_NUMBER- See Also:
-
ALLOWED_FIELD_NUMBER
public static final int ALLOWED_FIELD_NUMBER- See Also:
-
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER- See Also:
-
PATCH_FIELD_NUMBER
public static final int PATCH_FIELD_NUMBER- See Also:
-
PATCHTYPE_FIELD_NUMBER
public static final int PATCHTYPE_FIELD_NUMBER- See Also:
-
AUDITANNOTATIONS_FIELD_NUMBER
public static final int AUDITANNOTATIONS_FIELD_NUMBER- See Also:
-
WARNINGS_FIELD_NUMBER
public static final int WARNINGS_FIELD_NUMBER- See Also:
-
PARSER
Deprecated.
-
-
Method Details
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasUid
public boolean hasUid()UID is an identifier for the individual request/response. This must be copied over from the corresponding AdmissionRequest.
optional string uid = 1;- Specified by:
hasUidin interfaceV1Admission.AdmissionResponseOrBuilder
-
getUid
UID is an identifier for the individual request/response. This must be copied over from the corresponding AdmissionRequest.
optional string uid = 1;- Specified by:
getUidin interfaceV1Admission.AdmissionResponseOrBuilder
-
getUidBytes
public com.google.protobuf.ByteString getUidBytes()UID is an identifier for the individual request/response. This must be copied over from the corresponding AdmissionRequest.
optional string uid = 1;- Specified by:
getUidBytesin interfaceV1Admission.AdmissionResponseOrBuilder
-
hasAllowed
public boolean hasAllowed()Allowed indicates whether or not the admission request was permitted.
optional bool allowed = 2;- Specified by:
hasAllowedin interfaceV1Admission.AdmissionResponseOrBuilder
-
getAllowed
public boolean getAllowed()Allowed indicates whether or not the admission request was permitted.
optional bool allowed = 2;- Specified by:
getAllowedin interfaceV1Admission.AdmissionResponseOrBuilder
-
hasStatus
public boolean hasStatus()Result contains extra details into why an admission request was denied. This field IS NOT consulted in any way if "Allowed" is "true". +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status status = 3;- Specified by:
hasStatusin interfaceV1Admission.AdmissionResponseOrBuilder
-
getStatus
Result contains extra details into why an admission request was denied. This field IS NOT consulted in any way if "Allowed" is "true". +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status status = 3;- Specified by:
getStatusin interfaceV1Admission.AdmissionResponseOrBuilder
-
getStatusOrBuilder
Result contains extra details into why an admission request was denied. This field IS NOT consulted in any way if "Allowed" is "true". +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status status = 3;- Specified by:
getStatusOrBuilderin interfaceV1Admission.AdmissionResponseOrBuilder
-
hasPatch
public boolean hasPatch()The patch body. Currently we only support "JSONPatch" which implements RFC 6902. +optional
optional bytes patch = 4;- Specified by:
hasPatchin interfaceV1Admission.AdmissionResponseOrBuilder
-
getPatch
public com.google.protobuf.ByteString getPatch()The patch body. Currently we only support "JSONPatch" which implements RFC 6902. +optional
optional bytes patch = 4;- Specified by:
getPatchin interfaceV1Admission.AdmissionResponseOrBuilder
-
hasPatchType
public boolean hasPatchType()The type of Patch. Currently we only allow "JSONPatch". +optional
optional string patchType = 5;- Specified by:
hasPatchTypein interfaceV1Admission.AdmissionResponseOrBuilder
-
getPatchType
The type of Patch. Currently we only allow "JSONPatch". +optional
optional string patchType = 5;- Specified by:
getPatchTypein interfaceV1Admission.AdmissionResponseOrBuilder
-
getPatchTypeBytes
public com.google.protobuf.ByteString getPatchTypeBytes()The type of Patch. Currently we only allow "JSONPatch". +optional
optional string patchType = 5;- Specified by:
getPatchTypeBytesin interfaceV1Admission.AdmissionResponseOrBuilder
-
getAuditAnnotationsCount
public int getAuditAnnotationsCount()Description copied from interface:V1Admission.AdmissionResponseOrBuilderAuditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted). MutatingAdmissionWebhook and ValidatingAdmissionWebhook admission controller will prefix the keys with admission webhook name (e.g. imagepolicy.example.com/error=image-blacklisted). AuditAnnotations will be provided by the admission webhook to add additional context to the audit log for this request. +optional
map<string, string> auditAnnotations = 6;- Specified by:
getAuditAnnotationsCountin interfaceV1Admission.AdmissionResponseOrBuilder
-
containsAuditAnnotations
AuditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted). MutatingAdmissionWebhook and ValidatingAdmissionWebhook admission controller will prefix the keys with admission webhook name (e.g. imagepolicy.example.com/error=image-blacklisted). AuditAnnotations will be provided by the admission webhook to add additional context to the audit log for this request. +optional
map<string, string> auditAnnotations = 6;- Specified by:
containsAuditAnnotationsin interfaceV1Admission.AdmissionResponseOrBuilder
-
getAuditAnnotations
Deprecated.UsegetAuditAnnotationsMap()instead.- Specified by:
getAuditAnnotationsin interfaceV1Admission.AdmissionResponseOrBuilder
-
getAuditAnnotationsMap
AuditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted). MutatingAdmissionWebhook and ValidatingAdmissionWebhook admission controller will prefix the keys with admission webhook name (e.g. imagepolicy.example.com/error=image-blacklisted). AuditAnnotations will be provided by the admission webhook to add additional context to the audit log for this request. +optional
map<string, string> auditAnnotations = 6;- Specified by:
getAuditAnnotationsMapin interfaceV1Admission.AdmissionResponseOrBuilder
-
getAuditAnnotationsOrDefault
AuditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted). MutatingAdmissionWebhook and ValidatingAdmissionWebhook admission controller will prefix the keys with admission webhook name (e.g. imagepolicy.example.com/error=image-blacklisted). AuditAnnotations will be provided by the admission webhook to add additional context to the audit log for this request. +optional
map<string, string> auditAnnotations = 6;- Specified by:
getAuditAnnotationsOrDefaultin interfaceV1Admission.AdmissionResponseOrBuilder
-
getAuditAnnotationsOrThrow
AuditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted). MutatingAdmissionWebhook and ValidatingAdmissionWebhook admission controller will prefix the keys with admission webhook name (e.g. imagepolicy.example.com/error=image-blacklisted). AuditAnnotations will be provided by the admission webhook to add additional context to the audit log for this request. +optional
map<string, string> auditAnnotations = 6;- Specified by:
getAuditAnnotationsOrThrowin interfaceV1Admission.AdmissionResponseOrBuilder
-
getWarningsList
public com.google.protobuf.ProtocolStringList getWarningsList()warnings is a list of warning messages to return to the requesting API client. Warning messages describe a problem the client making the API request should correct or be aware of. Limit warnings to 120 characters if possible. Warnings over 256 characters and large numbers of warnings may be truncated. +optional
repeated string warnings = 7;- Specified by:
getWarningsListin interfaceV1Admission.AdmissionResponseOrBuilder
-
getWarningsCount
public int getWarningsCount()warnings is a list of warning messages to return to the requesting API client. Warning messages describe a problem the client making the API request should correct or be aware of. Limit warnings to 120 characters if possible. Warnings over 256 characters and large numbers of warnings may be truncated. +optional
repeated string warnings = 7;- Specified by:
getWarningsCountin interfaceV1Admission.AdmissionResponseOrBuilder
-
getWarnings
warnings is a list of warning messages to return to the requesting API client. Warning messages describe a problem the client making the API request should correct or be aware of. Limit warnings to 120 characters if possible. Warnings over 256 characters and large numbers of warnings may be truncated. +optional
repeated string warnings = 7;- Specified by:
getWarningsin interfaceV1Admission.AdmissionResponseOrBuilder
-
getWarningsBytes
public com.google.protobuf.ByteString getWarningsBytes(int index) warnings is a list of warning messages to return to the requesting API client. Warning messages describe a problem the client making the API request should correct or be aware of. Limit warnings to 120 characters if possible. Warnings over 256 characters and large numbers of warnings may be truncated. +optional
repeated string warnings = 7;- Specified by:
getWarningsBytesin interfaceV1Admission.AdmissionResponseOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static V1Admission.AdmissionResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static V1Admission.AdmissionResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static V1Admission.AdmissionResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static V1Admission.AdmissionResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static V1Admission.AdmissionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static V1Admission.AdmissionResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static V1Admission.AdmissionResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static V1Admission.AdmissionResponse parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static V1Admission.AdmissionResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static V1Admission.AdmissionResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static V1Admission.AdmissionResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static V1Admission.AdmissionResponse.Builder newBuilder(V1Admission.AdmissionResponse prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected V1Admission.AdmissionResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-