Class Generated.StatusCause.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.StatusCause.Builder>
-
- k8s.io.apimachinery.pkg.apis.meta.v1.Generated.StatusCause.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.StatusCauseOrBuilder
- Enclosing class:
- Generated.StatusCause
public static final class Generated.StatusCause.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.StatusCause.Builder> implements Generated.StatusCauseOrBuilder
StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.
Protobuf typek8s.io.apimachinery.pkg.apis.meta.v1.StatusCause
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.StatusCause.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.StatusCausebuild()Generated.StatusCausebuildPartial()Generated.StatusCause.Builderclear()Generated.StatusCause.BuilderclearField()The field of the resource that has caused this error, as named by its JSON serialization.Generated.StatusCause.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.StatusCause.BuilderclearMessage()A human-readable description of the cause of the error.Generated.StatusCause.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.StatusCause.BuilderclearReason()A machine-readable description of the cause of the error.Generated.StatusCause.Builderclone()Generated.StatusCausegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetField()The field of the resource that has caused this error, as named by its JSON serialization.com.google.protobuf.ByteStringgetFieldBytes()The field of the resource that has caused this error, as named by its JSON serialization.StringgetMessage()A human-readable description of the cause of the error.com.google.protobuf.ByteStringgetMessageBytes()A human-readable description of the cause of the error.StringgetReason()A machine-readable description of the cause of the error.com.google.protobuf.ByteStringgetReasonBytes()A machine-readable description of the cause of the error.booleanhasField()The field of the resource that has caused this error, as named by its JSON serialization.booleanhasMessage()A human-readable description of the cause of the error.booleanhasReason()A machine-readable description of the cause of the error.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.StatusCause.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.StatusCause.BuildermergeFrom(com.google.protobuf.Message other)Generated.StatusCause.BuildermergeFrom(Generated.StatusCause other)Generated.StatusCause.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.StatusCause.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.StatusCause.BuildersetField(String value)The field of the resource that has caused this error, as named by its JSON serialization.Generated.StatusCause.BuildersetFieldBytes(com.google.protobuf.ByteString value)The field of the resource that has caused this error, as named by its JSON serialization.Generated.StatusCause.BuildersetMessage(String value)A human-readable description of the cause of the error.Generated.StatusCause.BuildersetMessageBytes(com.google.protobuf.ByteString value)A human-readable description of the cause of the error.Generated.StatusCause.BuildersetReason(String value)A machine-readable description of the cause of the error.Generated.StatusCause.BuildersetReasonBytes(com.google.protobuf.ByteString value)A machine-readable description of the cause of the error.Generated.StatusCause.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.StatusCause.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.StatusCause.Builder>
-
clear
public Generated.StatusCause.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.StatusCause.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.StatusCause.Builder>
-
getDefaultInstanceForType
public Generated.StatusCause getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.StatusCause build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.StatusCause buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.StatusCause.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.StatusCause.Builder>
-
setField
public Generated.StatusCause.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.StatusCause.Builder>
-
clearField
public Generated.StatusCause.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.StatusCause.Builder>
-
clearOneof
public Generated.StatusCause.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.StatusCause.Builder>
-
setRepeatedField
public Generated.StatusCause.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.StatusCause.Builder>
-
addRepeatedField
public Generated.StatusCause.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.StatusCause.Builder>
-
mergeFrom
public Generated.StatusCause.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.StatusCause.Builder>
-
mergeFrom
public Generated.StatusCause.Builder mergeFrom(Generated.StatusCause other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.StatusCause.Builder>
-
mergeFrom
public Generated.StatusCause.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.StatusCause.Builder>- Throws:
IOException
-
hasReason
public boolean hasReason()
A machine-readable description of the cause of the error. If this value is empty there is no information available. +optional
optional string reason = 1;- Specified by:
hasReasonin interfaceGenerated.StatusCauseOrBuilder- Returns:
- Whether the reason field is set.
-
getReason
public String getReason()
A machine-readable description of the cause of the error. If this value is empty there is no information available. +optional
optional string reason = 1;- Specified by:
getReasonin interfaceGenerated.StatusCauseOrBuilder- Returns:
- The reason.
-
getReasonBytes
public com.google.protobuf.ByteString getReasonBytes()
A machine-readable description of the cause of the error. If this value is empty there is no information available. +optional
optional string reason = 1;- Specified by:
getReasonBytesin interfaceGenerated.StatusCauseOrBuilder- Returns:
- The bytes for reason.
-
setReason
public Generated.StatusCause.Builder setReason(String value)
A machine-readable description of the cause of the error. If this value is empty there is no information available. +optional
optional string reason = 1;- Parameters:
value- The reason to set.- Returns:
- This builder for chaining.
-
clearReason
public Generated.StatusCause.Builder clearReason()
A machine-readable description of the cause of the error. If this value is empty there is no information available. +optional
optional string reason = 1;- Returns:
- This builder for chaining.
-
setReasonBytes
public Generated.StatusCause.Builder setReasonBytes(com.google.protobuf.ByteString value)
A machine-readable description of the cause of the error. If this value is empty there is no information available. +optional
optional string reason = 1;- Parameters:
value- The bytes for reason to set.- Returns:
- This builder for chaining.
-
hasMessage
public boolean hasMessage()
A human-readable description of the cause of the error. This field may be presented as-is to a reader. +optional
optional string message = 2;- Specified by:
hasMessagein interfaceGenerated.StatusCauseOrBuilder- Returns:
- Whether the message field is set.
-
getMessage
public String getMessage()
A human-readable description of the cause of the error. This field may be presented as-is to a reader. +optional
optional string message = 2;- Specified by:
getMessagein interfaceGenerated.StatusCauseOrBuilder- Returns:
- The message.
-
getMessageBytes
public com.google.protobuf.ByteString getMessageBytes()
A human-readable description of the cause of the error. This field may be presented as-is to a reader. +optional
optional string message = 2;- Specified by:
getMessageBytesin interfaceGenerated.StatusCauseOrBuilder- Returns:
- The bytes for message.
-
setMessage
public Generated.StatusCause.Builder setMessage(String value)
A human-readable description of the cause of the error. This field may be presented as-is to a reader. +optional
optional string message = 2;- Parameters:
value- The message to set.- Returns:
- This builder for chaining.
-
clearMessage
public Generated.StatusCause.Builder clearMessage()
A human-readable description of the cause of the error. This field may be presented as-is to a reader. +optional
optional string message = 2;- Returns:
- This builder for chaining.
-
setMessageBytes
public Generated.StatusCause.Builder setMessageBytes(com.google.protobuf.ByteString value)
A human-readable description of the cause of the error. This field may be presented as-is to a reader. +optional
optional string message = 2;- Parameters:
value- The bytes for message to set.- Returns:
- This builder for chaining.
-
hasField
public boolean hasField()
The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: "name" - the field "name" on the current resource "items[0].name" - the field "name" on the first array entry in "items" +optional
optional string field = 3;- Specified by:
hasFieldin interfaceGenerated.StatusCauseOrBuilder- Returns:
- Whether the field field is set.
-
getField
public String getField()
The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: "name" - the field "name" on the current resource "items[0].name" - the field "name" on the first array entry in "items" +optional
optional string field = 3;- Specified by:
getFieldin interfaceGenerated.StatusCauseOrBuilder- Returns:
- The field.
-
getFieldBytes
public com.google.protobuf.ByteString getFieldBytes()
The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: "name" - the field "name" on the current resource "items[0].name" - the field "name" on the first array entry in "items" +optional
optional string field = 3;- Specified by:
getFieldBytesin interfaceGenerated.StatusCauseOrBuilder- Returns:
- The bytes for field.
-
setField
public Generated.StatusCause.Builder setField(String value)
The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: "name" - the field "name" on the current resource "items[0].name" - the field "name" on the first array entry in "items" +optional
optional string field = 3;- Parameters:
value- The field to set.- Returns:
- This builder for chaining.
-
clearField
public Generated.StatusCause.Builder clearField()
The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: "name" - the field "name" on the current resource "items[0].name" - the field "name" on the first array entry in "items" +optional
optional string field = 3;- Returns:
- This builder for chaining.
-
setFieldBytes
public Generated.StatusCause.Builder setFieldBytes(com.google.protobuf.ByteString value)
The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: "name" - the field "name" on the current resource "items[0].name" - the field "name" on the first array entry in "items" +optional
optional string field = 3;- Parameters:
value- The bytes for field to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Generated.StatusCause.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.StatusCause.Builder>
-
mergeUnknownFields
public final Generated.StatusCause.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.StatusCause.Builder>
-
-