Package io.kubernetes.client.proto
Class V1beta1Admissionregistration.WebhookClientConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Admissionregistration.WebhookClientConfig.Builder>
io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,V1beta1Admissionregistration.WebhookClientConfigOrBuilder
,Cloneable
- Enclosing class:
- V1beta1Admissionregistration.WebhookClientConfig
public static final class V1beta1Admissionregistration.WebhookClientConfig.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Admissionregistration.WebhookClientConfig.Builder>
implements V1beta1Admissionregistration.WebhookClientConfigOrBuilder
WebhookClientConfig contains the information to make a TLS connection with the webhookProtobuf type
k8s.io.api.admissionregistration.v1beta1.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.Descriptor
com.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.boolean
hasUrl()
`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(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
(V1beta1Admissionregistration.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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Admissionregistration.WebhookClientConfig.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Admissionregistration.WebhookClientConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Admissionregistration.WebhookClientConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Admissionregistration.WebhookClientConfig.Builder>
-
setField
public V1beta1Admissionregistration.WebhookClientConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Admissionregistration.WebhookClientConfig.Builder>
-
clearField
public V1beta1Admissionregistration.WebhookClientConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Admissionregistration.WebhookClientConfig.Builder>
-
clearOneof
public V1beta1Admissionregistration.WebhookClientConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Admissionregistration.WebhookClientConfig.Builder>
-
setRepeatedField
public V1beta1Admissionregistration.WebhookClientConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Admissionregistration.WebhookClientConfig.Builder>
-
addRepeatedField
public V1beta1Admissionregistration.WebhookClientConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Admissionregistration.WebhookClientConfig.Builder>
-
mergeFrom
public V1beta1Admissionregistration.WebhookClientConfig.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1beta1Admissionregistration.WebhookClientConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Admissionregistration.WebhookClientConfig.Builder>
-
mergeFrom
public V1beta1Admissionregistration.WebhookClientConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1beta1Admissionregistration.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. +optional
optional string url = 3;
- Specified by:
hasUrl
in interfaceV1beta1Admissionregistration.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. +optional
optional string url = 3;
- Specified by:
getUrl
in interfaceV1beta1Admissionregistration.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. +optional
optional string url = 3;
- Specified by:
getUrlBytes
in interfaceV1beta1Admissionregistration.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. +optional
optional 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. +optional
optional string url = 3;
-
setUrlBytes
public V1beta1Admissionregistration.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. +optional
optional 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.v1beta1.ServiceReference service = 1;
- Specified by:
hasService
in interfaceV1beta1Admissionregistration.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.v1beta1.ServiceReference service = 1;
- Specified by:
getService
in interfaceV1beta1Admissionregistration.WebhookClientConfigOrBuilder
-
setService
public V1beta1Admissionregistration.WebhookClientConfig.Builder setService(V1beta1Admissionregistration.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.v1beta1.ServiceReference service = 1;
-
setService
public V1beta1Admissionregistration.WebhookClientConfig.Builder setService(V1beta1Admissionregistration.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.v1beta1.ServiceReference service = 1;
-
mergeService
public V1beta1Admissionregistration.WebhookClientConfig.Builder mergeService(V1beta1Admissionregistration.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.ServiceReference service = 1;
- Specified by:
getServiceOrBuilder
in interfaceV1beta1Admissionregistration.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:
hasCaBundle
in interfaceV1beta1Admissionregistration.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:
getCaBundle
in interfaceV1beta1Admissionregistration.WebhookClientConfigOrBuilder
-
setCaBundle
public V1beta1Admissionregistration.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 V1beta1Admissionregistration.WebhookClientConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Admissionregistration.WebhookClientConfig.Builder>
-
mergeUnknownFields
public final V1beta1Admissionregistration.WebhookClientConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Admissionregistration.WebhookClientConfig.Builder>
-