Package io.kubernetes.client.proto
Class V1.EphemeralContainer.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1.EphemeralContainer.Builder>
io.kubernetes.client.proto.V1.EphemeralContainer.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,V1.EphemeralContainerOrBuilder
,Cloneable
- Enclosing class:
- V1.EphemeralContainer
public static final class V1.EphemeralContainer.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1.EphemeralContainer.Builder>
implements V1.EphemeralContainerOrBuilder
An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation. To add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted. This is a beta feature available on clusters that haven't disabled the EphemeralContainers feature gate.Protobuf type
k8s.io.api.core.v1.EphemeralContainer
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Ephemeral containers have all of the fields of Container, plus additional fields specific to ephemeral containers.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) If set, the name of the container from PodSpec that this ephemeral container targets.clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Ephemeral containers have all of the fields of Container, plus additional fields specific to ephemeral containers.Ephemeral containers have all of the fields of Container, plus additional fields specific to ephemeral containers.Ephemeral containers have all of the fields of Container, plus additional fields specific to ephemeral containers.If set, the name of the container from PodSpec that this ephemeral container targets.com.google.protobuf.ByteString
If set, the name of the container from PodSpec that this ephemeral container targets.boolean
Ephemeral containers have all of the fields of Container, plus additional fields specific to ephemeral containers.boolean
If set, the name of the container from PodSpec that this ephemeral container targets.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
Ephemeral containers have all of the fields of Container, plus additional fields specific to ephemeral containers.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(V1.EphemeralContainer other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Ephemeral containers have all of the fields of Container, plus additional fields specific to ephemeral containers.setEphemeralContainerCommon
(V1.EphemeralContainerCommon.Builder builderForValue) Ephemeral containers have all of the fields of Container, plus additional fields specific to ephemeral containers.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTargetContainerName
(String value) If set, the name of the container from PodSpec that this ephemeral container targets.setTargetContainerNameBytes
(com.google.protobuf.ByteString value) If set, the name of the container from PodSpec that this ephemeral container targets.setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) 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<V1.EphemeralContainer.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<V1.EphemeralContainer.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<V1.EphemeralContainer.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<V1.EphemeralContainer.Builder>
-
setField
public V1.EphemeralContainer.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<V1.EphemeralContainer.Builder>
-
clearField
public V1.EphemeralContainer.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<V1.EphemeralContainer.Builder>
-
clearOneof
public V1.EphemeralContainer.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<V1.EphemeralContainer.Builder>
-
setRepeatedField
public V1.EphemeralContainer.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<V1.EphemeralContainer.Builder>
-
addRepeatedField
public V1.EphemeralContainer.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<V1.EphemeralContainer.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1.EphemeralContainer.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.EphemeralContainer.Builder>
-
mergeFrom
public V1.EphemeralContainer.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<V1.EphemeralContainer.Builder>
- Throws:
IOException
-
hasEphemeralContainerCommon
public boolean hasEphemeralContainerCommon()Ephemeral containers have all of the fields of Container, plus additional fields specific to ephemeral containers. Fields in common with Container are in the following inlined struct so than an EphemeralContainer may easily be converted to a Container.
optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1;
- Specified by:
hasEphemeralContainerCommon
in interfaceV1.EphemeralContainerOrBuilder
-
getEphemeralContainerCommon
Ephemeral containers have all of the fields of Container, plus additional fields specific to ephemeral containers. Fields in common with Container are in the following inlined struct so than an EphemeralContainer may easily be converted to a Container.
optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1;
- Specified by:
getEphemeralContainerCommon
in interfaceV1.EphemeralContainerOrBuilder
-
setEphemeralContainerCommon
Ephemeral containers have all of the fields of Container, plus additional fields specific to ephemeral containers. Fields in common with Container are in the following inlined struct so than an EphemeralContainer may easily be converted to a Container.
optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1;
-
setEphemeralContainerCommon
public V1.EphemeralContainer.Builder setEphemeralContainerCommon(V1.EphemeralContainerCommon.Builder builderForValue) Ephemeral containers have all of the fields of Container, plus additional fields specific to ephemeral containers. Fields in common with Container are in the following inlined struct so than an EphemeralContainer may easily be converted to a Container.
optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1;
-
mergeEphemeralContainerCommon
public V1.EphemeralContainer.Builder mergeEphemeralContainerCommon(V1.EphemeralContainerCommon value) Ephemeral containers have all of the fields of Container, plus additional fields specific to ephemeral containers. Fields in common with Container are in the following inlined struct so than an EphemeralContainer may easily be converted to a Container.
optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1;
-
clearEphemeralContainerCommon
Ephemeral containers have all of the fields of Container, plus additional fields specific to ephemeral containers. Fields in common with Container are in the following inlined struct so than an EphemeralContainer may easily be converted to a Container.
optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1;
-
getEphemeralContainerCommonBuilder
Ephemeral containers have all of the fields of Container, plus additional fields specific to ephemeral containers. Fields in common with Container are in the following inlined struct so than an EphemeralContainer may easily be converted to a Container.
optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1;
-
getEphemeralContainerCommonOrBuilder
Ephemeral containers have all of the fields of Container, plus additional fields specific to ephemeral containers. Fields in common with Container are in the following inlined struct so than an EphemeralContainer may easily be converted to a Container.
optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1;
- Specified by:
getEphemeralContainerCommonOrBuilder
in interfaceV1.EphemeralContainerOrBuilder
-
hasTargetContainerName
public boolean hasTargetContainerName()If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec. The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined. +optional
optional string targetContainerName = 2;
- Specified by:
hasTargetContainerName
in interfaceV1.EphemeralContainerOrBuilder
-
getTargetContainerName
If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec. The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined. +optional
optional string targetContainerName = 2;
- Specified by:
getTargetContainerName
in interfaceV1.EphemeralContainerOrBuilder
-
getTargetContainerNameBytes
public com.google.protobuf.ByteString getTargetContainerNameBytes()If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec. The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined. +optional
optional string targetContainerName = 2;
- Specified by:
getTargetContainerNameBytes
in interfaceV1.EphemeralContainerOrBuilder
-
setTargetContainerName
If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec. The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined. +optional
optional string targetContainerName = 2;
-
clearTargetContainerName
If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec. The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined. +optional
optional string targetContainerName = 2;
-
setTargetContainerNameBytes
public V1.EphemeralContainer.Builder setTargetContainerNameBytes(com.google.protobuf.ByteString value) If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec. The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined. +optional
optional string targetContainerName = 2;
-
setUnknownFields
public final V1.EphemeralContainer.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.EphemeralContainer.Builder>
-
mergeUnknownFields
public final V1.EphemeralContainer.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.EphemeralContainer.Builder>
-