Class PolicyBasedRoute.Warnings (1.52.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
Type Description
int

DATA_FIELD_NUMBER

public static final int DATA_FIELD_NUMBER
Field Value
Type Description
int

WARNING_MESSAGE_FIELD_NUMBER

public static final int WARNING_MESSAGE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PolicyBasedRoute.Warnings getDefaultInstance()
Returns
Type Description
PolicyBasedRoute.Warnings

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static PolicyBasedRoute.Warnings.Builder newBuilder()
Returns
Type Description
PolicyBasedRoute.Warnings.Builder

newBuilder(PolicyBasedRoute.Warnings prototype)

public static PolicyBasedRoute.Warnings.Builder newBuilder(PolicyBasedRoute.Warnings prototype)
Parameter
Name Description
prototype PolicyBasedRoute.Warnings
Returns
Type Description
PolicyBasedRoute.Warnings.Builder

parseDelimitedFrom(InputStream input)

public static PolicyBasedRoute.Warnings parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PolicyBasedRoute.Warnings
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PolicyBasedRoute.Warnings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicyBasedRoute.Warnings
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PolicyBasedRoute.Warnings parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PolicyBasedRoute.Warnings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PolicyBasedRoute.Warnings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicyBasedRoute.Warnings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PolicyBasedRoute.Warnings parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PolicyBasedRoute.Warnings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PolicyBasedRoute.Warnings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicyBasedRoute.Warnings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PolicyBasedRoute.Warnings parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PolicyBasedRoute.Warnings
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PolicyBasedRoute.Warnings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicyBasedRoute.Warnings
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PolicyBasedRoute.Warnings parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PolicyBasedRoute.Warnings
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PolicyBasedRoute.Warnings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicyBasedRoute.Warnings
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PolicyBasedRoute.Warnings parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PolicyBasedRoute.Warnings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PolicyBasedRoute.Warnings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicyBasedRoute.Warnings
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PolicyBasedRoute.Warnings> parser()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
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
Type Description
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
Type Description
int

The enum numeric value on the wire for code.

getData() (deprecated)

public Map<String,String> getData()

Use #getDataMap() instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
String

getDefaultInstanceForType()

public PolicyBasedRoute.Warnings getDefaultInstanceForType()
Returns
Type Description
PolicyBasedRoute.Warnings

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for warningMessage.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PolicyBasedRoute.Warnings.Builder newBuilderForType()
Returns
Type Description
PolicyBasedRoute.Warnings.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PolicyBasedRoute.Warnings.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PolicyBasedRoute.Warnings.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public PolicyBasedRoute.Warnings.Builder toBuilder()
Returns
Type Description
PolicyBasedRoute.Warnings.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException