Class Generated.WatchEvent.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.WatchEvent.Builder>
-
- k8s.io.apimachinery.pkg.apis.meta.v1.Generated.WatchEvent.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.WatchEventOrBuilder
- Enclosing class:
- Generated.WatchEvent
public static final class Generated.WatchEvent.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.WatchEvent.Builder> implements Generated.WatchEventOrBuilder
Event represents a single event to a watched resource. +protobuf=true +k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Protobuf typek8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.WatchEvent.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.WatchEventbuild()Generated.WatchEventbuildPartial()Generated.WatchEvent.Builderclear()Generated.WatchEvent.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.WatchEvent.BuilderclearObject()Object is: * If Type is Added or Modified: the new state of the object.Generated.WatchEvent.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.WatchEvent.BuilderclearType()optional string type = 1;Generated.WatchEvent.Builderclone()Generated.WatchEventgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Generated.RawExtensiongetObject()Object is: * If Type is Added or Modified: the new state of the object.Generated.RawExtension.BuildergetObjectBuilder()Object is: * If Type is Added or Modified: the new state of the object.Generated.RawExtensionOrBuildergetObjectOrBuilder()Object is: * If Type is Added or Modified: the new state of the object.StringgetType()optional string type = 1;com.google.protobuf.ByteStringgetTypeBytes()optional string type = 1;booleanhasObject()Object is: * If Type is Added or Modified: the new state of the object.booleanhasType()optional string type = 1;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.WatchEvent.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.WatchEvent.BuildermergeFrom(com.google.protobuf.Message other)Generated.WatchEvent.BuildermergeFrom(Generated.WatchEvent other)Generated.WatchEvent.BuildermergeObject(Generated.RawExtension value)Object is: * If Type is Added or Modified: the new state of the object.Generated.WatchEvent.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.WatchEvent.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.WatchEvent.BuildersetObject(Generated.RawExtension value)Object is: * If Type is Added or Modified: the new state of the object.Generated.WatchEvent.BuildersetObject(Generated.RawExtension.Builder builderForValue)Object is: * If Type is Added or Modified: the new state of the object.Generated.WatchEvent.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.WatchEvent.BuildersetType(String value)optional string type = 1;Generated.WatchEvent.BuildersetTypeBytes(com.google.protobuf.ByteString value)optional string type = 1;Generated.WatchEvent.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, 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.WatchEvent.Builder>
-
clear
public Generated.WatchEvent.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.WatchEvent.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.WatchEvent.Builder>
-
getDefaultInstanceForType
public Generated.WatchEvent getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.WatchEvent build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.WatchEvent buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.WatchEvent.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.WatchEvent.Builder>
-
setField
public Generated.WatchEvent.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.WatchEvent.Builder>
-
clearField
public Generated.WatchEvent.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.WatchEvent.Builder>
-
clearOneof
public Generated.WatchEvent.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.WatchEvent.Builder>
-
setRepeatedField
public Generated.WatchEvent.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.WatchEvent.Builder>
-
addRepeatedField
public Generated.WatchEvent.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.WatchEvent.Builder>
-
mergeFrom
public Generated.WatchEvent.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.WatchEvent.Builder>
-
mergeFrom
public Generated.WatchEvent.Builder mergeFrom(Generated.WatchEvent other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.WatchEvent.Builder>
-
mergeFrom
public Generated.WatchEvent.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.WatchEvent.Builder>- Throws:
IOException
-
hasType
public boolean hasType()
optional string type = 1;- Specified by:
hasTypein interfaceGenerated.WatchEventOrBuilder- Returns:
- Whether the type field is set.
-
getType
public String getType()
optional string type = 1;- Specified by:
getTypein interfaceGenerated.WatchEventOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()
optional string type = 1;- Specified by:
getTypeBytesin interfaceGenerated.WatchEventOrBuilder- Returns:
- The bytes for type.
-
setType
public Generated.WatchEvent.Builder setType(String value)
optional string type = 1;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public Generated.WatchEvent.Builder clearType()
optional string type = 1;- Returns:
- This builder for chaining.
-
setTypeBytes
public Generated.WatchEvent.Builder setTypeBytes(com.google.protobuf.ByteString value)
optional string type = 1;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
hasObject
public boolean hasObject()
Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context.optional .k8s.io.apimachinery.pkg.runtime.RawExtension object = 2;- Specified by:
hasObjectin interfaceGenerated.WatchEventOrBuilder- Returns:
- Whether the object field is set.
-
getObject
public Generated.RawExtension getObject()
Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context.optional .k8s.io.apimachinery.pkg.runtime.RawExtension object = 2;- Specified by:
getObjectin interfaceGenerated.WatchEventOrBuilder- Returns:
- The object.
-
setObject
public Generated.WatchEvent.Builder setObject(Generated.RawExtension value)
Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context.optional .k8s.io.apimachinery.pkg.runtime.RawExtension object = 2;
-
setObject
public Generated.WatchEvent.Builder setObject(Generated.RawExtension.Builder builderForValue)
Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context.optional .k8s.io.apimachinery.pkg.runtime.RawExtension object = 2;
-
mergeObject
public Generated.WatchEvent.Builder mergeObject(Generated.RawExtension value)
Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context.optional .k8s.io.apimachinery.pkg.runtime.RawExtension object = 2;
-
clearObject
public Generated.WatchEvent.Builder clearObject()
Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context.optional .k8s.io.apimachinery.pkg.runtime.RawExtension object = 2;
-
getObjectBuilder
public Generated.RawExtension.Builder getObjectBuilder()
Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context.optional .k8s.io.apimachinery.pkg.runtime.RawExtension object = 2;
-
getObjectOrBuilder
public Generated.RawExtensionOrBuilder getObjectOrBuilder()
Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context.optional .k8s.io.apimachinery.pkg.runtime.RawExtension object = 2;- Specified by:
getObjectOrBuilderin interfaceGenerated.WatchEventOrBuilder
-
setUnknownFields
public final Generated.WatchEvent.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.WatchEvent.Builder>
-
mergeUnknownFields
public final Generated.WatchEvent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.WatchEvent.Builder>
-
-