Class PolicyBasedRoute.Warnings.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Warnings.Builder>
com.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings.Builder
- All Implemented Interfaces:
PolicyBasedRoute.WarningsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PolicyBasedRoute.Warnings
public static final class PolicyBasedRoute.Warnings.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Warnings.Builder>
implements PolicyBasedRoute.WarningsOrBuilder
Informational warning message.Protobuf type
google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.booleancontainsData(String key) Output only.getCode()Output only.intOutput only.getData()Deprecated.intOutput only.Output only.getDataOrDefault(String key, String defaultValue) Output only.getDataOrThrow(String key) Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.Output only.com.google.protobuf.ByteStringOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllData(Map<String, String> values) Output only.Output only.removeData(String key) Output only.Output only.setCodeValue(int value) Output only.setWarningMessage(String value) Output only.setWarningMessageBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Warnings.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Warnings.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Warnings.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Warnings.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Warnings.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PolicyBasedRoute.Warnings.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Warnings.Builder>
-
mergeFrom
public PolicyBasedRoute.Warnings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PolicyBasedRoute.Warnings.Builder>- Throws:
IOException
-
getCodeValue
public int getCodeValue()Output only. A warning code, if applicable.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCodeValuein interfacePolicyBasedRoute.WarningsOrBuilder- Returns:
- The enum numeric value on the wire for code.
-
setCodeValue
Output only. A warning code, if applicable.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for code to set.- Returns:
- This builder for chaining.
-
getCode
Output only. A warning code, if applicable.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCodein interfacePolicyBasedRoute.WarningsOrBuilder- Returns:
- The code.
-
setCode
Output only. A warning code, if applicable.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The code to set.- Returns:
- This builder for chaining.
-
clearCode
Output only. A warning code, if applicable.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getDataCount
public int getDataCount()Description copied from interface:PolicyBasedRoute.WarningsOrBuilderOutput 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];- Specified by:
getDataCountin interfacePolicyBasedRoute.WarningsOrBuilder
-
containsData
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];- Specified by:
containsDatain interfacePolicyBasedRoute.WarningsOrBuilder
-
getData
Deprecated.UsegetDataMap()instead.- Specified by:
getDatain interfacePolicyBasedRoute.WarningsOrBuilder
-
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];- Specified by:
getDataMapin interfacePolicyBasedRoute.WarningsOrBuilder
-
getDataOrDefault
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];- Specified by:
getDataOrDefaultin interfacePolicyBasedRoute.WarningsOrBuilder
-
getDataOrThrow
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];- Specified by:
getDataOrThrowin interfacePolicyBasedRoute.WarningsOrBuilder
-
clearData
-
removeData
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]; -
getMutableData
Deprecated.Use alternate mutation accessors instead. -
putData
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]; -
putAllData
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]; -
getWarningMessage
Output only. A human-readable description of the warning code.
string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getWarningMessagein interfacePolicyBasedRoute.WarningsOrBuilder- Returns:
- The warningMessage.
-
getWarningMessageBytes
public com.google.protobuf.ByteString getWarningMessageBytes()Output only. A human-readable description of the warning code.
string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getWarningMessageBytesin interfacePolicyBasedRoute.WarningsOrBuilder- Returns:
- The bytes for warningMessage.
-
setWarningMessage
Output only. A human-readable description of the warning code.
string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The warningMessage to set.- Returns:
- This builder for chaining.
-
clearWarningMessage
Output only. A human-readable description of the warning code.
string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setWarningMessageBytes
public PolicyBasedRoute.Warnings.Builder setWarningMessageBytes(com.google.protobuf.ByteString value) Output only. A human-readable description of the warning code.
string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for warningMessage to set.- Returns:
- This builder for chaining.
-