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
DATA_FIELD_NUMBER
public static final int DATA_FIELD_NUMBER
Field Value
WARNING_MESSAGE_FIELD_NUMBER
public static final int WARNING_MESSAGE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static PolicyBasedRoute.Warnings getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static PolicyBasedRoute.Warnings.Builder newBuilder()
Returns
newBuilder(PolicyBasedRoute.Warnings prototype)
public static PolicyBasedRoute.Warnings.Builder newBuilder(PolicyBasedRoute.Warnings prototype)
Parameter
Returns
public static PolicyBasedRoute.Warnings parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static PolicyBasedRoute.Warnings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static PolicyBasedRoute.Warnings parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PolicyBasedRoute.Warnings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static PolicyBasedRoute.Warnings parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PolicyBasedRoute.Warnings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static PolicyBasedRoute.Warnings parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static PolicyBasedRoute.Warnings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static PolicyBasedRoute.Warnings parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static PolicyBasedRoute.Warnings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static PolicyBasedRoute.Warnings parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PolicyBasedRoute.Warnings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<PolicyBasedRoute.Warnings> parser()
Returns
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
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
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()
public Map<String,String> getData()
Returns
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
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
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
Returns
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
Returns
getDefaultInstanceForType()
public PolicyBasedRoute.Warnings getDefaultInstanceForType()
Returns
getParserForType()
public Parser<PolicyBasedRoute.Warnings> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public PolicyBasedRoute.Warnings.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected PolicyBasedRoute.Warnings.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public PolicyBasedRoute.Warnings.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions