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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PolicyBasedRoute.Warnings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public PolicyBasedRoute.Warnings build()
Returns
buildPartial()
public PolicyBasedRoute.Warnings buildPartial()
Returns
clear()
public PolicyBasedRoute.Warnings.Builder clear()
Returns
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
clearData()
public PolicyBasedRoute.Warnings.Builder clearData()
Returns
clearField(Descriptors.FieldDescriptor field)
public PolicyBasedRoute.Warnings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public PolicyBasedRoute.Warnings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public PolicyBasedRoute.Warnings.Builder clone()
Returns
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
Returns
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMutableData()
public Map<String,String> getMutableData()
Use alternate mutation accessors instead.
Returns
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
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(PolicyBasedRoute.Warnings other)
public PolicyBasedRoute.Warnings.Builder mergeFrom(PolicyBasedRoute.Warnings other)
Parameter
Returns
public PolicyBasedRoute.Warnings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public PolicyBasedRoute.Warnings.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PolicyBasedRoute.Warnings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public PolicyBasedRoute.Warnings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PolicyBasedRoute.Warnings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PolicyBasedRoute.Warnings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
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