Class PolicyBasedRoute.Warnings (1.32.0)

public static final class PolicyBasedRoute.Warnings extends GeneratedMessageV3 implements PolicyBasedRoute.WarningsOrBuilder

Informational warning message.

Protobuf type google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings

Static Fields

CODE_FIELD_NUMBER

public static final int CODE_FIELD_NUMBER
Field Value
TypeDescription
int

DATA_FIELD_NUMBER

public static final int DATA_FIELD_NUMBER
Field Value
TypeDescription
int

WARNING_MESSAGE_FIELD_NUMBER

public static final int WARNING_MESSAGE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PolicyBasedRoute.Warnings getDefaultInstance()
Returns
TypeDescription
PolicyBasedRoute.Warnings

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static PolicyBasedRoute.Warnings.Builder newBuilder()
Returns
TypeDescription
PolicyBasedRoute.Warnings.Builder

newBuilder(PolicyBasedRoute.Warnings prototype)

public static PolicyBasedRoute.Warnings.Builder newBuilder(PolicyBasedRoute.Warnings prototype)
Parameter
NameDescription
prototypePolicyBasedRoute.Warnings
Returns
TypeDescription
PolicyBasedRoute.Warnings.Builder

parseDelimitedFrom(InputStream input)

public static PolicyBasedRoute.Warnings parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PolicyBasedRoute.Warnings
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PolicyBasedRoute.Warnings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PolicyBasedRoute.Warnings
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PolicyBasedRoute.Warnings parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PolicyBasedRoute.Warnings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PolicyBasedRoute.Warnings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PolicyBasedRoute.Warnings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PolicyBasedRoute.Warnings parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PolicyBasedRoute.Warnings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PolicyBasedRoute.Warnings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PolicyBasedRoute.Warnings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PolicyBasedRoute.Warnings parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PolicyBasedRoute.Warnings
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PolicyBasedRoute.Warnings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PolicyBasedRoute.Warnings
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PolicyBasedRoute.Warnings parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PolicyBasedRoute.Warnings
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PolicyBasedRoute.Warnings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PolicyBasedRoute.Warnings
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PolicyBasedRoute.Warnings parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PolicyBasedRoute.Warnings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PolicyBasedRoute.Warnings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PolicyBasedRoute.Warnings
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<PolicyBasedRoute.Warnings> parser()
Returns
TypeDescription
Parser<Warnings>

Methods

containsData(String key)

public boolean containsData(String key)

Output only. Metadata about this warning in key: value format. The key should provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement.

map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCode()

public PolicyBasedRoute.Warnings.Code getCode()

Output only. A warning code, if applicable.

.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
PolicyBasedRoute.Warnings.Code

The code.

getCodeValue()

public int getCodeValue()

Output only. A warning code, if applicable.

.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for code.

getData() (deprecated)

public Map<String,String> getData()

Use #getDataMap() instead.

Returns
TypeDescription
Map<String,String>

getDataCount()

public int getDataCount()

Output only. Metadata about this warning in key: value format. The key should provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement.

map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getDataMap()

public Map<String,String> getDataMap()

Output only. Metadata about this warning in key: value format. The key should provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement.

map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Map<String,String>

getDataOrDefault(String key, String defaultValue)

public String getDataOrDefault(String key, String defaultValue)

Output only. Metadata about this warning in key: value format. The key should provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement.

map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getDataOrThrow(String key)

public String getDataOrThrow(String key)

Output only. Metadata about this warning in key: value format. The key should provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement.

map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getDefaultInstanceForType()

public PolicyBasedRoute.Warnings getDefaultInstanceForType()
Returns
TypeDescription
PolicyBasedRoute.Warnings

getParserForType()

public Parser<PolicyBasedRoute.Warnings> getParserForType()
Returns
TypeDescription
Parser<Warnings>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getWarningMessage()

public String getWarningMessage()

Output only. A human-readable description of the warning code.

string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The warningMessage.

getWarningMessageBytes()

public ByteString getWarningMessageBytes()

Output only. A human-readable description of the warning code.

string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for warningMessage.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public PolicyBasedRoute.Warnings.Builder newBuilderForType()
Returns
TypeDescription
PolicyBasedRoute.Warnings.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PolicyBasedRoute.Warnings.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PolicyBasedRoute.Warnings.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public PolicyBasedRoute.Warnings.Builder toBuilder()
Returns
TypeDescription
PolicyBasedRoute.Warnings.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException