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 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.Builder<PolicyBasedRoute.Warnings.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Warnings.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Warnings.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Warnings.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Warnings.Builder>
    • getDefaultInstanceForType

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

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

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

      public PolicyBasedRoute.Warnings.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PolicyBasedRoute.Warnings.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getCodeValue in interface PolicyBasedRoute.WarningsOrBuilder
      Returns:
      The enum numeric value on the wire for code.
    • setCodeValue

      public PolicyBasedRoute.Warnings.Builder setCodeValue(int value)
       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:
      getCode in interface PolicyBasedRoute.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.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
    • clearData

    • removeData

      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];
    • getMutableData

      @Deprecated public Map<String,String> getMutableData()
      Deprecated.
      Use alternate mutation accessors instead.
    • putData

      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];
    • putAllData

      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];
    • 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.
    • setWarningMessage

      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];
      Parameters:
      value - The warningMessage to set.
      Returns:
      This builder for chaining.
    • 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:
      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.