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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PolicyBasedRoute.Warnings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public PolicyBasedRoute.Warnings build()
buildPartial()
public PolicyBasedRoute.Warnings buildPartial()
clear()
public PolicyBasedRoute.Warnings.Builder clear()
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];
clearData()
public PolicyBasedRoute.Warnings.Builder clearData()
clearField(Descriptors.FieldDescriptor field)
public PolicyBasedRoute.Warnings.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public PolicyBasedRoute.Warnings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
clone()
public PolicyBasedRoute.Warnings.Builder clone()
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
|
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];
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()
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];
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];
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
|
getDefaultInstanceForType()
public PolicyBasedRoute.Warnings getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMutableData() (deprecated)
public Map<String,String> getMutableData()
Use alternate mutation accessors instead.
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()
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()
Overrides
mergeFrom(PolicyBasedRoute.Warnings other)
public PolicyBasedRoute.Warnings.Builder mergeFrom(PolicyBasedRoute.Warnings other)
public PolicyBasedRoute.Warnings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public PolicyBasedRoute.Warnings.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PolicyBasedRoute.Warnings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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];
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];
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
|
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];
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public PolicyBasedRoute.Warnings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PolicyBasedRoute.Warnings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PolicyBasedRoute.Warnings.Builder setUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|