Class PolicyBasedRoute.Warnings

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings
All Implemented Interfaces:
PolicyBasedRoute.WarningsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
PolicyBasedRoute

public static final class PolicyBasedRoute.Warnings extends com.google.protobuf.GeneratedMessage implements PolicyBasedRoute.WarningsOrBuilder
 Informational warning message.
 
Protobuf type google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings
See Also:
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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:
      getCodeValue in interface PolicyBasedRoute.WarningsOrBuilder
      Returns:
      The enum numeric value on the wire for code.
    • 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:
      getCode in interface PolicyBasedRoute.WarningsOrBuilder
      Returns:
      The code.
    • getDataCount

      public int getDataCount()
      Description copied from interface: PolicyBasedRoute.WarningsOrBuilder
       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:
      getDataCount in interface PolicyBasedRoute.WarningsOrBuilder
    • containsData

      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];
      Specified by:
      containsData in interface PolicyBasedRoute.WarningsOrBuilder
    • getData

      @Deprecated public Map<String,String> getData()
      Deprecated.
      Use getDataMap() instead.
      Specified by:
      getData in interface PolicyBasedRoute.WarningsOrBuilder
    • 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];
      Specified by:
      getDataMap in interface PolicyBasedRoute.WarningsOrBuilder
    • getDataOrDefault

      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];
      Specified by:
      getDataOrDefault in interface PolicyBasedRoute.WarningsOrBuilder
    • getDataOrThrow

      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];
      Specified by:
      getDataOrThrow in interface PolicyBasedRoute.WarningsOrBuilder
    • getWarningMessage

      public String getWarningMessage()
       Output only. A human-readable description of the warning code.
       
      string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getWarningMessage in interface PolicyBasedRoute.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:
      getWarningMessageBytes in interface PolicyBasedRoute.WarningsOrBuilder
      Returns:
      The bytes for warningMessage.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static PolicyBasedRoute.Warnings parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PolicyBasedRoute.Warnings parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PolicyBasedRoute.Warnings parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PolicyBasedRoute.Warnings parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PolicyBasedRoute.Warnings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PolicyBasedRoute.Warnings parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PolicyBasedRoute.Warnings parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PolicyBasedRoute.Warnings parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PolicyBasedRoute.Warnings parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PolicyBasedRoute.Warnings parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PolicyBasedRoute.Warnings parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PolicyBasedRoute.Warnings parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public PolicyBasedRoute.Warnings.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static PolicyBasedRoute.Warnings.Builder newBuilder()
    • newBuilder

      public static PolicyBasedRoute.Warnings.Builder newBuilder(PolicyBasedRoute.Warnings prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected PolicyBasedRoute.Warnings.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static PolicyBasedRoute.Warnings getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<PolicyBasedRoute.Warnings> parser()
    • getParserForType

      public com.google.protobuf.Parser<PolicyBasedRoute.Warnings> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public PolicyBasedRoute.Warnings getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder