Class PolicyBasedRoute.Warnings.Builder (1.43.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PolicyBasedRoute.Warnings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PolicyBasedRoute.Warnings.Builder
Overrides

build()

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

buildPartial()

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

clear()

public PolicyBasedRoute.Warnings.Builder clear()
Returns
Type Description
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
Type Description
PolicyBasedRoute.Warnings.Builder

This builder for chaining.

clearData()

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

clearField(Descriptors.FieldDescriptor field)

public PolicyBasedRoute.Warnings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PolicyBasedRoute.Warnings.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PolicyBasedRoute.Warnings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
PolicyBasedRoute.Warnings.Builder

This builder for chaining.

clone()

public PolicyBasedRoute.Warnings.Builder clone()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
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
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutableData() (deprecated)

public Map<String,String> getMutableData()

Use alternate mutation accessors instead.

Returns
Type Description
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
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.

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.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PolicyBasedRoute.Warnings other)

public PolicyBasedRoute.Warnings.Builder mergeFrom(PolicyBasedRoute.Warnings other)
Parameter
Name Description
other PolicyBasedRoute.Warnings
Returns
Type Description
PolicyBasedRoute.Warnings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PolicyBasedRoute.Warnings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicyBasedRoute.Warnings.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PolicyBasedRoute.Warnings.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PolicyBasedRoute.Warnings.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PolicyBasedRoute.Warnings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
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
Name Description
value PolicyBasedRoute.Warnings.Code

The code to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
PolicyBasedRoute.Warnings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PolicyBasedRoute.Warnings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PolicyBasedRoute.Warnings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PolicyBasedRoute.Warnings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value String

The warningMessage to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for warningMessage to set.

Returns
Type Description
PolicyBasedRoute.Warnings.Builder

This builder for chaining.