Class PolicyBasedRoute.Warnings.Builder (1.29.0)

public static final class PolicyBasedRoute.Warnings.Builder extends GeneratedMessageV3.Builder<PolicyBasedRoute.Warnings.Builder> implements PolicyBasedRoute.WarningsOrBuilder

Informational warning message.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PolicyBasedRoute.Warnings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PolicyBasedRoute.Warnings.Builder
Overrides

build()

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

buildPartial()

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

clear()

public PolicyBasedRoute.Warnings.Builder clear()
Returns
TypeDescription
PolicyBasedRoute.Warnings.Builder
Overrides

clearCode()

public PolicyBasedRoute.Warnings.Builder clearCode()

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.Builder

This builder for chaining.

clearData()

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

clearField(Descriptors.FieldDescriptor field)

public PolicyBasedRoute.Warnings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PolicyBasedRoute.Warnings.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PolicyBasedRoute.Warnings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PolicyBasedRoute.Warnings.Builder
Overrides

clearWarningMessage()

public PolicyBasedRoute.Warnings.Builder clearWarningMessage()

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

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

Returns
TypeDescription
PolicyBasedRoute.Warnings.Builder

This builder for chaining.

clone()

public PolicyBasedRoute.Warnings.Builder clone()
Returns
TypeDescription
PolicyBasedRoute.Warnings.Builder
Overrides

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

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()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableData()

public Map<String,String> getMutableData()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

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

internalGetMutableMapField(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PolicyBasedRoute.Warnings other)

public PolicyBasedRoute.Warnings.Builder mergeFrom(PolicyBasedRoute.Warnings other)
Parameter
NameDescription
otherPolicyBasedRoute.Warnings
Returns
TypeDescription
PolicyBasedRoute.Warnings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PolicyBasedRoute.Warnings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PolicyBasedRoute.Warnings.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PolicyBasedRoute.Warnings.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PolicyBasedRoute.Warnings.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PolicyBasedRoute.Warnings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PolicyBasedRoute.Warnings.Builder
Overrides

putAllData(Map<String,String> values)

public PolicyBasedRoute.Warnings.Builder putAllData(Map<String,String> values)

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
valuesMap<String,String>
Returns
TypeDescription
PolicyBasedRoute.Warnings.Builder

putData(String key, String value)

public PolicyBasedRoute.Warnings.Builder putData(String key, String value)

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
valueString
Returns
TypeDescription
PolicyBasedRoute.Warnings.Builder

removeData(String key)

public PolicyBasedRoute.Warnings.Builder removeData(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
PolicyBasedRoute.Warnings.Builder

setCode(PolicyBasedRoute.Warnings.Code value)

public PolicyBasedRoute.Warnings.Builder setCode(PolicyBasedRoute.Warnings.Code value)

Output only. A warning code, if applicable.

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

Parameter
NameDescription
valuePolicyBasedRoute.Warnings.Code

The code to set.

Returns
TypeDescription
PolicyBasedRoute.Warnings.Builder

This builder for chaining.

setCodeValue(int value)

public PolicyBasedRoute.Warnings.Builder setCodeValue(int value)

Output only. A warning code, if applicable.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for code to set.

Returns
TypeDescription
PolicyBasedRoute.Warnings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PolicyBasedRoute.Warnings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PolicyBasedRoute.Warnings.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PolicyBasedRoute.Warnings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PolicyBasedRoute.Warnings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PolicyBasedRoute.Warnings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PolicyBasedRoute.Warnings.Builder
Overrides

setWarningMessage(String value)

public PolicyBasedRoute.Warnings.Builder setWarningMessage(String value)

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

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

Parameter
NameDescription
valueString

The warningMessage to set.

Returns
TypeDescription
PolicyBasedRoute.Warnings.Builder

This builder for chaining.

setWarningMessageBytes(ByteString value)

public PolicyBasedRoute.Warnings.Builder setWarningMessageBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for warningMessage to set.

Returns
TypeDescription
PolicyBasedRoute.Warnings.Builder

This builder for chaining.