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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasType()
optional int64 type = 1;hasType in interface IntStr.IntOrStringOrBuilderpublic long getType()
optional int64 type = 1;getType in interface IntStr.IntOrStringOrBuilderpublic boolean hasIntVal()
optional int32 intVal = 2;hasIntVal in interface IntStr.IntOrStringOrBuilderpublic int getIntVal()
optional int32 intVal = 2;getIntVal in interface IntStr.IntOrStringOrBuilderpublic boolean hasStrVal()
optional string strVal = 3;hasStrVal in interface IntStr.IntOrStringOrBuilderpublic String getStrVal()
optional string strVal = 3;getStrVal in interface IntStr.IntOrStringOrBuilderpublic com.google.protobuf.ByteString getStrValBytes()
optional string strVal = 3;getStrValBytes in interface IntStr.IntOrStringOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static IntStr.IntOrString parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static IntStr.IntOrString parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static IntStr.IntOrString parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static IntStr.IntOrString parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static IntStr.IntOrString parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static IntStr.IntOrString parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static IntStr.IntOrString parseFrom(InputStream input) throws IOException
IOExceptionpublic static IntStr.IntOrString parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static IntStr.IntOrString parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static IntStr.IntOrString parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static IntStr.IntOrString parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static IntStr.IntOrString parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic IntStr.IntOrString.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic 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.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected IntStr.IntOrString.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public 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.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public IntStr.IntOrString getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2020. All rights reserved.