Package io.kubernetes.client.proto
Class V1Admissionregistration.WebhookClientConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1Admissionregistration.WebhookClientConfig.Builder>
io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V1Admissionregistration.WebhookClientConfigOrBuilder,Cloneable
- Enclosing class:
- V1Admissionregistration.WebhookClientConfig
public static final class V1Admissionregistration.WebhookClientConfig.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1Admissionregistration.WebhookClientConfig.Builder>
implements V1Admissionregistration.WebhookClientConfigOrBuilder
WebhookClientConfig contains the information to make a TLS connection with the webhookProtobuf type
k8s.io.api.admissionregistration.v1.WebhookClientConfig-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) `service` is a reference to the service for this webhook.clearUrl()`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`).clone()com.google.protobuf.ByteString`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptor`service` is a reference to the service for this webhook.`service` is a reference to the service for this webhook.`service` is a reference to the service for this webhook.getUrl()`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`).com.google.protobuf.ByteString`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`).boolean`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.boolean`service` is a reference to the service for this webhook.booleanhasUrl()`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) `service` is a reference to the service for this webhook.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCaBundle(com.google.protobuf.ByteString value) `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) `service` is a reference to the service for this webhook.setService(V1Admissionregistration.ServiceReference.Builder builderForValue) `service` is a reference to the service for this webhook.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`).setUrlBytes(com.google.protobuf.ByteString value) `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`).Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<V1Admissionregistration.WebhookClientConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Admissionregistration.WebhookClientConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<V1Admissionregistration.WebhookClientConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<V1Admissionregistration.WebhookClientConfig.Builder>
-
setField
public V1Admissionregistration.WebhookClientConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Admissionregistration.WebhookClientConfig.Builder>
-
clearField
public V1Admissionregistration.WebhookClientConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Admissionregistration.WebhookClientConfig.Builder>
-
clearOneof
public V1Admissionregistration.WebhookClientConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Admissionregistration.WebhookClientConfig.Builder>
-
setRepeatedField
public V1Admissionregistration.WebhookClientConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Admissionregistration.WebhookClientConfig.Builder>
-
addRepeatedField
public V1Admissionregistration.WebhookClientConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Admissionregistration.WebhookClientConfig.Builder>
-
mergeFrom
public V1Admissionregistration.WebhookClientConfig.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1Admissionregistration.WebhookClientConfig.Builder>
-
mergeFrom
public V1Admissionregistration.WebhookClientConfig.Builder mergeFrom(V1Admissionregistration.WebhookClientConfig other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Admissionregistration.WebhookClientConfig.Builder>
-
mergeFrom
public V1Admissionregistration.WebhookClientConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1Admissionregistration.WebhookClientConfig.Builder>- Throws:
IOException
-
hasUrl
public boolean hasUrl()`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be "https"; the URL must begin with "https://". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. +optionaloptional string url = 3;- Specified by:
hasUrlin interfaceV1Admissionregistration.WebhookClientConfigOrBuilder
-
getUrl
`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be "https"; the URL must begin with "https://". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. +optionaloptional string url = 3;- Specified by:
getUrlin interfaceV1Admissionregistration.WebhookClientConfigOrBuilder
-
getUrlBytes
public com.google.protobuf.ByteString getUrlBytes()`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be "https"; the URL must begin with "https://". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. +optionaloptional string url = 3;- Specified by:
getUrlBytesin interfaceV1Admissionregistration.WebhookClientConfigOrBuilder
-
setUrl
`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be "https"; the URL must begin with "https://". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. +optionaloptional string url = 3; -
clearUrl
`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be "https"; the URL must begin with "https://". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. +optionaloptional string url = 3; -
setUrlBytes
public V1Admissionregistration.WebhookClientConfig.Builder setUrlBytes(com.google.protobuf.ByteString value) `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be "https"; the URL must begin with "https://". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. +optionaloptional string url = 3; -
hasService
public boolean hasService()`service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. +optional
optional .k8s.io.api.admissionregistration.v1.ServiceReference service = 1;- Specified by:
hasServicein interfaceV1Admissionregistration.WebhookClientConfigOrBuilder
-
getService
`service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. +optional
optional .k8s.io.api.admissionregistration.v1.ServiceReference service = 1;- Specified by:
getServicein interfaceV1Admissionregistration.WebhookClientConfigOrBuilder
-
setService
public V1Admissionregistration.WebhookClientConfig.Builder setService(V1Admissionregistration.ServiceReference value) `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. +optional
optional .k8s.io.api.admissionregistration.v1.ServiceReference service = 1; -
setService
public V1Admissionregistration.WebhookClientConfig.Builder setService(V1Admissionregistration.ServiceReference.Builder builderForValue) `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. +optional
optional .k8s.io.api.admissionregistration.v1.ServiceReference service = 1; -
mergeService
public V1Admissionregistration.WebhookClientConfig.Builder mergeService(V1Admissionregistration.ServiceReference value) `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. +optional
optional .k8s.io.api.admissionregistration.v1.ServiceReference service = 1; -
clearService
`service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. +optional
optional .k8s.io.api.admissionregistration.v1.ServiceReference service = 1; -
getServiceBuilder
`service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. +optional
optional .k8s.io.api.admissionregistration.v1.ServiceReference service = 1; -
getServiceOrBuilder
`service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. +optional
optional .k8s.io.api.admissionregistration.v1.ServiceReference service = 1;- Specified by:
getServiceOrBuilderin interfaceV1Admissionregistration.WebhookClientConfigOrBuilder
-
hasCaBundle
public boolean hasCaBundle()`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. +optional
optional bytes caBundle = 2;- Specified by:
hasCaBundlein interfaceV1Admissionregistration.WebhookClientConfigOrBuilder
-
getCaBundle
public com.google.protobuf.ByteString getCaBundle()`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. +optional
optional bytes caBundle = 2;- Specified by:
getCaBundlein interfaceV1Admissionregistration.WebhookClientConfigOrBuilder
-
setCaBundle
public V1Admissionregistration.WebhookClientConfig.Builder setCaBundle(com.google.protobuf.ByteString value) `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. +optional
optional bytes caBundle = 2; -
clearCaBundle
`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. +optional
optional bytes caBundle = 2; -
setUnknownFields
public final V1Admissionregistration.WebhookClientConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Admissionregistration.WebhookClientConfig.Builder>
-
mergeUnknownFields
public final V1Admissionregistration.WebhookClientConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Admissionregistration.WebhookClientConfig.Builder>
-