Class V1beta1Admission.AdmissionResponse

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.kubernetes.client.proto.V1beta1Admission.AdmissionResponse
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1beta1Admission.AdmissionResponseOrBuilder, Serializable
Enclosing class:
V1beta1Admission

public static final class V1beta1Admission.AdmissionResponse extends com.google.protobuf.GeneratedMessageV3 implements V1beta1Admission.AdmissionResponseOrBuilder
 AdmissionResponse describes an admission response.
 
Protobuf type k8s.io.api.admission.v1beta1.AdmissionResponse
See Also:
  • Field Details

  • Method Details

    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapField

      protected com.google.protobuf.MapField internalGetMapField(int number)
      Overrides:
      internalGetMapField in class com.google.protobuf.GeneratedMessageV3
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasUid

      public boolean hasUid()
       UID is an identifier for the individual request/response.
       This should be copied over from the corresponding AdmissionRequest.
       
      optional string uid = 1;
      Specified by:
      hasUid in interface V1beta1Admission.AdmissionResponseOrBuilder
    • getUid

      public String getUid()
       UID is an identifier for the individual request/response.
       This should be copied over from the corresponding AdmissionRequest.
       
      optional string uid = 1;
      Specified by:
      getUid in interface V1beta1Admission.AdmissionResponseOrBuilder
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       UID is an identifier for the individual request/response.
       This should be copied over from the corresponding AdmissionRequest.
       
      optional string uid = 1;
      Specified by:
      getUidBytes in interface V1beta1Admission.AdmissionResponseOrBuilder
    • hasAllowed

      public boolean hasAllowed()
       Allowed indicates whether or not the admission request was permitted.
       
      optional bool allowed = 2;
      Specified by:
      hasAllowed in interface V1beta1Admission.AdmissionResponseOrBuilder
    • getAllowed

      public boolean getAllowed()
       Allowed indicates whether or not the admission request was permitted.
       
      optional bool allowed = 2;
      Specified by:
      getAllowed in interface V1beta1Admission.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:
      hasStatus in interface V1beta1Admission.AdmissionResponseOrBuilder
    • getStatus

      public Meta.Status 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:
      getStatus in interface V1beta1Admission.AdmissionResponseOrBuilder
    • getStatusOrBuilder

      public Meta.StatusOrBuilder 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:
      getStatusOrBuilder in interface V1beta1Admission.AdmissionResponseOrBuilder
    • hasPatch

      public boolean hasPatch()
       The patch body. Currently we only support "JSONPatch" which implements RFC 6902.
       +optional
       
      optional bytes patch = 4;
      Specified by:
      hasPatch in interface V1beta1Admission.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:
      getPatch in interface V1beta1Admission.AdmissionResponseOrBuilder
    • hasPatchType

      public boolean hasPatchType()
       The type of Patch. Currently we only allow "JSONPatch".
       +optional
       
      optional string patchType = 5;
      Specified by:
      hasPatchType in interface V1beta1Admission.AdmissionResponseOrBuilder
    • getPatchType

      public String getPatchType()
       The type of Patch. Currently we only allow "JSONPatch".
       +optional
       
      optional string patchType = 5;
      Specified by:
      getPatchType in interface V1beta1Admission.AdmissionResponseOrBuilder
    • getPatchTypeBytes

      public com.google.protobuf.ByteString getPatchTypeBytes()
       The type of Patch. Currently we only allow "JSONPatch".
       +optional
       
      optional string patchType = 5;
      Specified by:
      getPatchTypeBytes in interface V1beta1Admission.AdmissionResponseOrBuilder
    • getAuditAnnotationsCount

      public int getAuditAnnotationsCount()
      Description copied from interface: V1beta1Admission.AdmissionResponseOrBuilder
       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:
      getAuditAnnotationsCount in interface V1beta1Admission.AdmissionResponseOrBuilder
    • containsAuditAnnotations

      public boolean containsAuditAnnotations(String key)
       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:
      containsAuditAnnotations in interface V1beta1Admission.AdmissionResponseOrBuilder
    • getAuditAnnotations

      @Deprecated public Map<String,String> getAuditAnnotations()
      Deprecated.
      Specified by:
      getAuditAnnotations in interface V1beta1Admission.AdmissionResponseOrBuilder
    • getAuditAnnotationsMap

      public Map<String,String> 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:
      getAuditAnnotationsMap in interface V1beta1Admission.AdmissionResponseOrBuilder
    • getAuditAnnotationsOrDefault

      public String getAuditAnnotationsOrDefault(String key, String defaultValue)
       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:
      getAuditAnnotationsOrDefault in interface V1beta1Admission.AdmissionResponseOrBuilder
    • getAuditAnnotationsOrThrow

      public String getAuditAnnotationsOrThrow(String key)
       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:
      getAuditAnnotationsOrThrow in interface V1beta1Admission.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:
      getWarningsList in interface V1beta1Admission.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:
      getWarningsCount in interface V1beta1Admission.AdmissionResponseOrBuilder
    • getWarnings

      public String getWarnings(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:
      getWarnings in interface V1beta1Admission.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:
      getWarningsBytes in interface V1beta1Admission.AdmissionResponseOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static V1beta1Admission.AdmissionResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1beta1Admission.AdmissionResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1beta1Admission.AdmissionResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1beta1Admission.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 V1beta1Admission.AdmissionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1beta1Admission.AdmissionResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1beta1Admission.AdmissionResponse parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1beta1Admission.AdmissionResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1beta1Admission.AdmissionResponse parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1beta1Admission.AdmissionResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1beta1Admission.AdmissionResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1beta1Admission.AdmissionResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public V1beta1Admission.AdmissionResponse.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static V1beta1Admission.AdmissionResponse.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected V1beta1Admission.AdmissionResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static V1beta1Admission.AdmissionResponse getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<V1beta1Admission.AdmissionResponse> parser()
    • getParserForType

      public com.google.protobuf.Parser<V1beta1Admission.AdmissionResponse> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public V1beta1Admission.AdmissionResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder