public static final class IntStr.IntOrString extends com.google.protobuf.GeneratedMessageV3 implements IntStr.IntOrStringOrBuilder
IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. TODO: Rename to Int32OrString +protobuf=true +protobuf.options.(gogoproto.goproto_stringer)=false +k8s:openapi-gen=trueProtobuf type
k8s.io.apimachinery.pkg.util.intstr.IntOrString
Modifier and Type | Class and Description |
---|---|
static class |
IntStr.IntOrString.Builder
IntOrString is a type that can hold an int32 or a string.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
Modifier and Type | Field and Description |
---|---|
static int |
INTVAL_FIELD_NUMBER |
static com.google.protobuf.Parser<IntStr.IntOrString> |
PARSER
Deprecated.
|
static int |
STRVAL_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static IntStr.IntOrString |
getDefaultInstance() |
IntStr.IntOrString |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getIntVal()
optional int32 intVal = 2; |
com.google.protobuf.Parser<IntStr.IntOrString> |
getParserForType() |
int |
getSerializedSize() |
String |
getStrVal()
optional string strVal = 3; |
com.google.protobuf.ByteString |
getStrValBytes()
optional string strVal = 3; |
long |
getType()
optional int64 type = 1; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasIntVal()
optional int32 intVal = 2; |
boolean |
hasStrVal()
optional string strVal = 3; |
boolean |
hasType()
optional int64 type = 1; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static IntStr.IntOrString.Builder |
newBuilder() |
static IntStr.IntOrString.Builder |
newBuilder(IntStr.IntOrString prototype) |
IntStr.IntOrString.Builder |
newBuilderForType() |
protected IntStr.IntOrString.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static IntStr.IntOrString |
parseDelimitedFrom(InputStream input) |
static IntStr.IntOrString |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static IntStr.IntOrString |
parseFrom(byte[] data) |
static IntStr.IntOrString |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static IntStr.IntOrString |
parseFrom(ByteBuffer data) |
static IntStr.IntOrString |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static IntStr.IntOrString |
parseFrom(com.google.protobuf.ByteString data) |
static IntStr.IntOrString |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static IntStr.IntOrString |
parseFrom(com.google.protobuf.CodedInputStream input) |
static IntStr.IntOrString |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static IntStr.IntOrString |
parseFrom(InputStream input) |
static IntStr.IntOrString |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<IntStr.IntOrString> |
parser() |
IntStr.IntOrString.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int TYPE_FIELD_NUMBER
public static final int INTVAL_FIELD_NUMBER
public static final int STRVAL_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<IntStr.IntOrString> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public boolean hasType()
optional int64 type = 1;
hasType
in interface IntStr.IntOrStringOrBuilder
public long getType()
optional int64 type = 1;
getType
in interface IntStr.IntOrStringOrBuilder
public boolean hasIntVal()
optional int32 intVal = 2;
hasIntVal
in interface IntStr.IntOrStringOrBuilder
public int getIntVal()
optional int32 intVal = 2;
getIntVal
in interface IntStr.IntOrStringOrBuilder
public boolean hasStrVal()
optional string strVal = 3;
hasStrVal
in interface IntStr.IntOrStringOrBuilder
public String getStrVal()
optional string strVal = 3;
getStrVal
in interface IntStr.IntOrStringOrBuilder
public com.google.protobuf.ByteString getStrValBytes()
optional string strVal = 3;
getStrValBytes
in interface IntStr.IntOrStringOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static IntStr.IntOrString parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static IntStr.IntOrString parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static IntStr.IntOrString parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static IntStr.IntOrString parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static IntStr.IntOrString parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static IntStr.IntOrString parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static IntStr.IntOrString parseFrom(InputStream input) throws IOException
IOException
public static IntStr.IntOrString parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static IntStr.IntOrString parseDelimitedFrom(InputStream input) throws IOException
IOException
public static IntStr.IntOrString parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static IntStr.IntOrString parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static IntStr.IntOrString parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public IntStr.IntOrString.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static IntStr.IntOrString.Builder newBuilder()
public static IntStr.IntOrString.Builder newBuilder(IntStr.IntOrString prototype)
public IntStr.IntOrString.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected IntStr.IntOrString.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static IntStr.IntOrString getDefaultInstance()
public static com.google.protobuf.Parser<IntStr.IntOrString> parser()
public com.google.protobuf.Parser<IntStr.IntOrString> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public IntStr.IntOrString getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2021. All rights reserved.