Package k8s.io.api.core.v1
Class Generated.ResourceStatus.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.ResourceStatus.Builder>
-
- k8s.io.api.core.v1.Generated.ResourceStatus.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.ResourceStatusOrBuilder
- Enclosing class:
- Generated.ResourceStatus
public static final class Generated.ResourceStatus.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.ResourceStatus.Builder> implements Generated.ResourceStatusOrBuilder
ResourceStatus represents the status of a single resource allocated to a Pod.
Protobuf typek8s.io.api.core.v1.ResourceStatus
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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
-
-
-
-
Method Detail
-
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<Generated.ResourceStatus.Builder>
-
clear
public Generated.ResourceStatus.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<Generated.ResourceStatus.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<Generated.ResourceStatus.Builder>
-
getDefaultInstanceForType
public Generated.ResourceStatus getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.ResourceStatus build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.ResourceStatus buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.ResourceStatus.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<Generated.ResourceStatus.Builder>
-
setField
public Generated.ResourceStatus.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<Generated.ResourceStatus.Builder>
-
clearField
public Generated.ResourceStatus.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ResourceStatus.Builder>
-
clearOneof
public Generated.ResourceStatus.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ResourceStatus.Builder>
-
setRepeatedField
public Generated.ResourceStatus.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<Generated.ResourceStatus.Builder>
-
addRepeatedField
public Generated.ResourceStatus.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<Generated.ResourceStatus.Builder>
-
mergeFrom
public Generated.ResourceStatus.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.ResourceStatus.Builder>
-
mergeFrom
public Generated.ResourceStatus.Builder mergeFrom(Generated.ResourceStatus other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ResourceStatus.Builder>
-
mergeFrom
public Generated.ResourceStatus.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<Generated.ResourceStatus.Builder>- Throws:
IOException
-
hasName
public boolean hasName()
Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be "claim:<claim_name>/<request>". When this status is reported about a container, the "claim_name" and "request" must match one of the claims of this container. +required
optional string name = 1;- Specified by:
hasNamein interfaceGenerated.ResourceStatusOrBuilder- Returns:
- Whether the name field is set.
-
getName
public String getName()
Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be "claim:<claim_name>/<request>". When this status is reported about a container, the "claim_name" and "request" must match one of the claims of this container. +required
optional string name = 1;- Specified by:
getNamein interfaceGenerated.ResourceStatusOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be "claim:<claim_name>/<request>". When this status is reported about a container, the "claim_name" and "request" must match one of the claims of this container. +required
optional string name = 1;- Specified by:
getNameBytesin interfaceGenerated.ResourceStatusOrBuilder- Returns:
- The bytes for name.
-
setName
public Generated.ResourceStatus.Builder setName(String value)
Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be "claim:<claim_name>/<request>". When this status is reported about a container, the "claim_name" and "request" must match one of the claims of this container. +required
optional string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Generated.ResourceStatus.Builder clearName()
Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be "claim:<claim_name>/<request>". When this status is reported about a container, the "claim_name" and "request" must match one of the claims of this container. +required
optional string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public Generated.ResourceStatus.Builder setNameBytes(com.google.protobuf.ByteString value)
Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be "claim:<claim_name>/<request>". When this status is reported about a container, the "claim_name" and "request" must match one of the claims of this container. +required
optional string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getResourcesList
public List<Generated.ResourceHealth> getResourcesList()
List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. +listType=map +listMapKey=resourceID
repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;- Specified by:
getResourcesListin interfaceGenerated.ResourceStatusOrBuilder
-
getResourcesCount
public int getResourcesCount()
List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. +listType=map +listMapKey=resourceID
repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;- Specified by:
getResourcesCountin interfaceGenerated.ResourceStatusOrBuilder
-
getResources
public Generated.ResourceHealth getResources(int index)
List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. +listType=map +listMapKey=resourceID
repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;- Specified by:
getResourcesin interfaceGenerated.ResourceStatusOrBuilder
-
setResources
public Generated.ResourceStatus.Builder setResources(int index, Generated.ResourceHealth value)
List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. +listType=map +listMapKey=resourceID
repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
-
setResources
public Generated.ResourceStatus.Builder setResources(int index, Generated.ResourceHealth.Builder builderForValue)
List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. +listType=map +listMapKey=resourceID
repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
-
addResources
public Generated.ResourceStatus.Builder addResources(Generated.ResourceHealth value)
List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. +listType=map +listMapKey=resourceID
repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
-
addResources
public Generated.ResourceStatus.Builder addResources(int index, Generated.ResourceHealth value)
List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. +listType=map +listMapKey=resourceID
repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
-
addResources
public Generated.ResourceStatus.Builder addResources(Generated.ResourceHealth.Builder builderForValue)
List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. +listType=map +listMapKey=resourceID
repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
-
addResources
public Generated.ResourceStatus.Builder addResources(int index, Generated.ResourceHealth.Builder builderForValue)
List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. +listType=map +listMapKey=resourceID
repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
-
addAllResources
public Generated.ResourceStatus.Builder addAllResources(Iterable<? extends Generated.ResourceHealth> values)
List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. +listType=map +listMapKey=resourceID
repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
-
clearResources
public Generated.ResourceStatus.Builder clearResources()
List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. +listType=map +listMapKey=resourceID
repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
-
removeResources
public Generated.ResourceStatus.Builder removeResources(int index)
List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. +listType=map +listMapKey=resourceID
repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
-
getResourcesBuilder
public Generated.ResourceHealth.Builder getResourcesBuilder(int index)
List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. +listType=map +listMapKey=resourceID
repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
-
getResourcesOrBuilder
public Generated.ResourceHealthOrBuilder getResourcesOrBuilder(int index)
List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. +listType=map +listMapKey=resourceID
repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;- Specified by:
getResourcesOrBuilderin interfaceGenerated.ResourceStatusOrBuilder
-
getResourcesOrBuilderList
public List<? extends Generated.ResourceHealthOrBuilder> getResourcesOrBuilderList()
List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. +listType=map +listMapKey=resourceID
repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;- Specified by:
getResourcesOrBuilderListin interfaceGenerated.ResourceStatusOrBuilder
-
addResourcesBuilder
public Generated.ResourceHealth.Builder addResourcesBuilder()
List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. +listType=map +listMapKey=resourceID
repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
-
addResourcesBuilder
public Generated.ResourceHealth.Builder addResourcesBuilder(int index)
List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. +listType=map +listMapKey=resourceID
repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
-
getResourcesBuilderList
public List<Generated.ResourceHealth.Builder> getResourcesBuilderList()
List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. +listType=map +listMapKey=resourceID
repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
-
setUnknownFields
public final Generated.ResourceStatus.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ResourceStatus.Builder>
-
mergeUnknownFields
public final Generated.ResourceStatus.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ResourceStatus.Builder>
-
-