Package flyteidl.core
Class Tasks.K8sObjectMetadata.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Tasks.K8sObjectMetadata.Builder>
-
- flyteidl.core.Tasks.K8sObjectMetadata.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Tasks.K8sObjectMetadataOrBuilder,Cloneable
- Enclosing class:
- Tasks.K8sObjectMetadata
public static final class Tasks.K8sObjectMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Tasks.K8sObjectMetadata.Builder> implements Tasks.K8sObjectMetadataOrBuilder
Metadata for building a kubernetes object when a task is executed.
Protobuf typeflyteidl.core.K8sObjectMetadata
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.protobuf.MapField<String,String>annotations_private intbitField0_private com.google.protobuf.MapField<String,String>labels_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Tasks.K8sObjectMetadata.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Tasks.K8sObjectMetadatabuild()Tasks.K8sObjectMetadatabuildPartial()private voidbuildPartial0(Tasks.K8sObjectMetadata result)Tasks.K8sObjectMetadata.Builderclear()Tasks.K8sObjectMetadata.BuilderclearAnnotations()Tasks.K8sObjectMetadata.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Tasks.K8sObjectMetadata.BuilderclearLabels()Tasks.K8sObjectMetadata.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Tasks.K8sObjectMetadata.Builderclone()booleancontainsAnnotations(String key)Optional annotations to add to the pod definition.booleancontainsLabels(String key)Optional labels to add to the pod definition.Map<String,String>getAnnotations()Deprecated.intgetAnnotationsCount()Optional annotations to add to the pod definition.Map<String,String>getAnnotationsMap()Optional annotations to add to the pod definition.StringgetAnnotationsOrDefault(String key, String defaultValue)Optional annotations to add to the pod definition.StringgetAnnotationsOrThrow(String key)Optional annotations to add to the pod definition.Tasks.K8sObjectMetadatagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Map<String,String>getLabels()Deprecated.intgetLabelsCount()Optional labels to add to the pod definition.Map<String,String>getLabelsMap()Optional labels to add to the pod definition.StringgetLabelsOrDefault(String key, String defaultValue)Optional labels to add to the pod definition.StringgetLabelsOrThrow(String key)Optional labels to add to the pod definition.Map<String,String>getMutableAnnotations()Deprecated.Map<String,String>getMutableLabels()Deprecated.private com.google.protobuf.MapField<String,String>internalGetAnnotations()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()private com.google.protobuf.MapField<String,String>internalGetLabels()protected com.google.protobuf.MapFieldinternalGetMapField(int number)private com.google.protobuf.MapField<String,String>internalGetMutableAnnotations()private com.google.protobuf.MapField<String,String>internalGetMutableLabels()protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()Tasks.K8sObjectMetadata.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Tasks.K8sObjectMetadata.BuildermergeFrom(com.google.protobuf.Message other)Tasks.K8sObjectMetadata.BuildermergeFrom(Tasks.K8sObjectMetadata other)Tasks.K8sObjectMetadata.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Tasks.K8sObjectMetadata.BuilderputAllAnnotations(Map<String,String> values)Optional annotations to add to the pod definition.Tasks.K8sObjectMetadata.BuilderputAllLabels(Map<String,String> values)Optional labels to add to the pod definition.Tasks.K8sObjectMetadata.BuilderputAnnotations(String key, String value)Optional annotations to add to the pod definition.Tasks.K8sObjectMetadata.BuilderputLabels(String key, String value)Optional labels to add to the pod definition.Tasks.K8sObjectMetadata.BuilderremoveAnnotations(String key)Optional annotations to add to the pod definition.Tasks.K8sObjectMetadata.BuilderremoveLabels(String key)Optional labels to add to the pod definition.Tasks.K8sObjectMetadata.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Tasks.K8sObjectMetadata.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Tasks.K8sObjectMetadata.BuildersetUnknownFields(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, 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()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Tasks.K8sObjectMetadata.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Tasks.K8sObjectMetadata.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Tasks.K8sObjectMetadata.Builder>
-
clear
public Tasks.K8sObjectMetadata.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<Tasks.K8sObjectMetadata.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<Tasks.K8sObjectMetadata.Builder>
-
getDefaultInstanceForType
public Tasks.K8sObjectMetadata getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Tasks.K8sObjectMetadata build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Tasks.K8sObjectMetadata buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(Tasks.K8sObjectMetadata result)
-
clone
public Tasks.K8sObjectMetadata.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<Tasks.K8sObjectMetadata.Builder>
-
setField
public Tasks.K8sObjectMetadata.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<Tasks.K8sObjectMetadata.Builder>
-
clearField
public Tasks.K8sObjectMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Tasks.K8sObjectMetadata.Builder>
-
clearOneof
public Tasks.K8sObjectMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Tasks.K8sObjectMetadata.Builder>
-
setRepeatedField
public Tasks.K8sObjectMetadata.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<Tasks.K8sObjectMetadata.Builder>
-
addRepeatedField
public Tasks.K8sObjectMetadata.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<Tasks.K8sObjectMetadata.Builder>
-
mergeFrom
public Tasks.K8sObjectMetadata.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Tasks.K8sObjectMetadata.Builder>
-
mergeFrom
public Tasks.K8sObjectMetadata.Builder mergeFrom(Tasks.K8sObjectMetadata other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Tasks.K8sObjectMetadata.Builder>
-
mergeFrom
public Tasks.K8sObjectMetadata.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<Tasks.K8sObjectMetadata.Builder>- Throws:
IOException
-
internalGetMutableLabels
private com.google.protobuf.MapField<String,String> internalGetMutableLabels()
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:Tasks.K8sObjectMetadataOrBuilderOptional labels to add to the pod definition.
map<string, string> labels = 1;- Specified by:
getLabelsCountin interfaceTasks.K8sObjectMetadataOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Optional labels to add to the pod definition.
map<string, string> labels = 1;- Specified by:
containsLabelsin interfaceTasks.K8sObjectMetadataOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceTasks.K8sObjectMetadataOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Optional labels to add to the pod definition.
map<string, string> labels = 1;- Specified by:
getLabelsMapin interfaceTasks.K8sObjectMetadataOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Optional labels to add to the pod definition.
map<string, string> labels = 1;- Specified by:
getLabelsOrDefaultin interfaceTasks.K8sObjectMetadataOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Optional labels to add to the pod definition.
map<string, string> labels = 1;- Specified by:
getLabelsOrThrowin interfaceTasks.K8sObjectMetadataOrBuilder
-
clearLabels
public Tasks.K8sObjectMetadata.Builder clearLabels()
-
removeLabels
public Tasks.K8sObjectMetadata.Builder removeLabels(String key)
Optional labels to add to the pod definition.
map<string, string> labels = 1;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public Tasks.K8sObjectMetadata.Builder putLabels(String key, String value)
Optional labels to add to the pod definition.
map<string, string> labels = 1;
-
putAllLabels
public Tasks.K8sObjectMetadata.Builder putAllLabels(Map<String,String> values)
Optional labels to add to the pod definition.
map<string, string> labels = 1;
-
internalGetAnnotations
private com.google.protobuf.MapField<String,String> internalGetAnnotations()
-
internalGetMutableAnnotations
private com.google.protobuf.MapField<String,String> internalGetMutableAnnotations()
-
getAnnotationsCount
public int getAnnotationsCount()
Description copied from interface:Tasks.K8sObjectMetadataOrBuilderOptional annotations to add to the pod definition.
map<string, string> annotations = 2;- Specified by:
getAnnotationsCountin interfaceTasks.K8sObjectMetadataOrBuilder
-
containsAnnotations
public boolean containsAnnotations(String key)
Optional annotations to add to the pod definition.
map<string, string> annotations = 2;- Specified by:
containsAnnotationsin interfaceTasks.K8sObjectMetadataOrBuilder
-
getAnnotations
@Deprecated public Map<String,String> getAnnotations()
Deprecated.UsegetAnnotationsMap()instead.- Specified by:
getAnnotationsin interfaceTasks.K8sObjectMetadataOrBuilder
-
getAnnotationsMap
public Map<String,String> getAnnotationsMap()
Optional annotations to add to the pod definition.
map<string, string> annotations = 2;- Specified by:
getAnnotationsMapin interfaceTasks.K8sObjectMetadataOrBuilder
-
getAnnotationsOrDefault
public String getAnnotationsOrDefault(String key, String defaultValue)
Optional annotations to add to the pod definition.
map<string, string> annotations = 2;- Specified by:
getAnnotationsOrDefaultin interfaceTasks.K8sObjectMetadataOrBuilder
-
getAnnotationsOrThrow
public String getAnnotationsOrThrow(String key)
Optional annotations to add to the pod definition.
map<string, string> annotations = 2;- Specified by:
getAnnotationsOrThrowin interfaceTasks.K8sObjectMetadataOrBuilder
-
clearAnnotations
public Tasks.K8sObjectMetadata.Builder clearAnnotations()
-
removeAnnotations
public Tasks.K8sObjectMetadata.Builder removeAnnotations(String key)
Optional annotations to add to the pod definition.
map<string, string> annotations = 2;
-
getMutableAnnotations
@Deprecated public Map<String,String> getMutableAnnotations()
Deprecated.Use alternate mutation accessors instead.
-
putAnnotations
public Tasks.K8sObjectMetadata.Builder putAnnotations(String key, String value)
Optional annotations to add to the pod definition.
map<string, string> annotations = 2;
-
putAllAnnotations
public Tasks.K8sObjectMetadata.Builder putAllAnnotations(Map<String,String> values)
Optional annotations to add to the pod definition.
map<string, string> annotations = 2;
-
setUnknownFields
public final Tasks.K8sObjectMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Tasks.K8sObjectMetadata.Builder>
-
mergeUnknownFields
public final Tasks.K8sObjectMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Tasks.K8sObjectMetadata.Builder>
-
-