Class AbortInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AbortInfo.Builder>
com.google.cloud.networkmanagement.v1beta1.AbortInfo.Builder
All Implemented Interfaces:
AbortInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AbortInfo

public static final class AbortInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<AbortInfo.Builder> implements AbortInfoOrBuilder
 Details of the final state "abort" and associated resource.
 
Protobuf type google.cloud.networkmanagement.v1beta1.AbortInfo
  • Method Details

    • getDescriptor

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

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

      public AbortInfo.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<AbortInfo.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<AbortInfo.Builder>
    • getDefaultInstanceForType

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

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

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

      public AbortInfo.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<AbortInfo.Builder>
    • mergeFrom

      public AbortInfo.Builder mergeFrom(AbortInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AbortInfo.Builder>
    • mergeFrom

      public AbortInfo.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<AbortInfo.Builder>
      Throws:
      IOException
    • getCauseValue

      public int getCauseValue()
       Causes that the analysis is aborted.
       
      .google.cloud.networkmanagement.v1beta1.AbortInfo.Cause cause = 1;
      Specified by:
      getCauseValue in interface AbortInfoOrBuilder
      Returns:
      The enum numeric value on the wire for cause.
    • setCauseValue

      public AbortInfo.Builder setCauseValue(int value)
       Causes that the analysis is aborted.
       
      .google.cloud.networkmanagement.v1beta1.AbortInfo.Cause cause = 1;
      Parameters:
      value - The enum numeric value on the wire for cause to set.
      Returns:
      This builder for chaining.
    • getCause

      public AbortInfo.Cause getCause()
       Causes that the analysis is aborted.
       
      .google.cloud.networkmanagement.v1beta1.AbortInfo.Cause cause = 1;
      Specified by:
      getCause in interface AbortInfoOrBuilder
      Returns:
      The cause.
    • setCause

      public AbortInfo.Builder setCause(AbortInfo.Cause value)
       Causes that the analysis is aborted.
       
      .google.cloud.networkmanagement.v1beta1.AbortInfo.Cause cause = 1;
      Parameters:
      value - The cause to set.
      Returns:
      This builder for chaining.
    • clearCause

      public AbortInfo.Builder clearCause()
       Causes that the analysis is aborted.
       
      .google.cloud.networkmanagement.v1beta1.AbortInfo.Cause cause = 1;
      Returns:
      This builder for chaining.
    • getResourceUri

      public String getResourceUri()
       URI of the resource that caused the abort.
       
      string resource_uri = 2;
      Specified by:
      getResourceUri in interface AbortInfoOrBuilder
      Returns:
      The resourceUri.
    • getResourceUriBytes

      public com.google.protobuf.ByteString getResourceUriBytes()
       URI of the resource that caused the abort.
       
      string resource_uri = 2;
      Specified by:
      getResourceUriBytes in interface AbortInfoOrBuilder
      Returns:
      The bytes for resourceUri.
    • setResourceUri

      public AbortInfo.Builder setResourceUri(String value)
       URI of the resource that caused the abort.
       
      string resource_uri = 2;
      Parameters:
      value - The resourceUri to set.
      Returns:
      This builder for chaining.
    • clearResourceUri

      public AbortInfo.Builder clearResourceUri()
       URI of the resource that caused the abort.
       
      string resource_uri = 2;
      Returns:
      This builder for chaining.
    • setResourceUriBytes

      public AbortInfo.Builder setResourceUriBytes(com.google.protobuf.ByteString value)
       URI of the resource that caused the abort.
       
      string resource_uri = 2;
      Parameters:
      value - The bytes for resourceUri to set.
      Returns:
      This builder for chaining.
    • getIpAddress

      public String getIpAddress()
       IP address that caused the abort.
       
      string ip_address = 4 [(.google.api.field_info) = { ... }
      Specified by:
      getIpAddress in interface AbortInfoOrBuilder
      Returns:
      The ipAddress.
    • getIpAddressBytes

      public com.google.protobuf.ByteString getIpAddressBytes()
       IP address that caused the abort.
       
      string ip_address = 4 [(.google.api.field_info) = { ... }
      Specified by:
      getIpAddressBytes in interface AbortInfoOrBuilder
      Returns:
      The bytes for ipAddress.
    • setIpAddress

      public AbortInfo.Builder setIpAddress(String value)
       IP address that caused the abort.
       
      string ip_address = 4 [(.google.api.field_info) = { ... }
      Parameters:
      value - The ipAddress to set.
      Returns:
      This builder for chaining.
    • clearIpAddress

      public AbortInfo.Builder clearIpAddress()
       IP address that caused the abort.
       
      string ip_address = 4 [(.google.api.field_info) = { ... }
      Returns:
      This builder for chaining.
    • setIpAddressBytes

      public AbortInfo.Builder setIpAddressBytes(com.google.protobuf.ByteString value)
       IP address that caused the abort.
       
      string ip_address = 4 [(.google.api.field_info) = { ... }
      Parameters:
      value - The bytes for ipAddress to set.
      Returns:
      This builder for chaining.
    • getProjectsMissingPermissionList

      public com.google.protobuf.ProtocolStringList getProjectsMissingPermissionList()
       List of project IDs the user specified in the request but lacks access to.
       In this case, analysis is aborted with the PERMISSION_DENIED cause.
       
      repeated string projects_missing_permission = 3;
      Specified by:
      getProjectsMissingPermissionList in interface AbortInfoOrBuilder
      Returns:
      A list containing the projectsMissingPermission.
    • getProjectsMissingPermissionCount

      public int getProjectsMissingPermissionCount()
       List of project IDs the user specified in the request but lacks access to.
       In this case, analysis is aborted with the PERMISSION_DENIED cause.
       
      repeated string projects_missing_permission = 3;
      Specified by:
      getProjectsMissingPermissionCount in interface AbortInfoOrBuilder
      Returns:
      The count of projectsMissingPermission.
    • getProjectsMissingPermission

      public String getProjectsMissingPermission(int index)
       List of project IDs the user specified in the request but lacks access to.
       In this case, analysis is aborted with the PERMISSION_DENIED cause.
       
      repeated string projects_missing_permission = 3;
      Specified by:
      getProjectsMissingPermission in interface AbortInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The projectsMissingPermission at the given index.
    • getProjectsMissingPermissionBytes

      public com.google.protobuf.ByteString getProjectsMissingPermissionBytes(int index)
       List of project IDs the user specified in the request but lacks access to.
       In this case, analysis is aborted with the PERMISSION_DENIED cause.
       
      repeated string projects_missing_permission = 3;
      Specified by:
      getProjectsMissingPermissionBytes in interface AbortInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the projectsMissingPermission at the given index.
    • setProjectsMissingPermission

      public AbortInfo.Builder setProjectsMissingPermission(int index, String value)
       List of project IDs the user specified in the request but lacks access to.
       In this case, analysis is aborted with the PERMISSION_DENIED cause.
       
      repeated string projects_missing_permission = 3;
      Parameters:
      index - The index to set the value at.
      value - The projectsMissingPermission to set.
      Returns:
      This builder for chaining.
    • addProjectsMissingPermission

      public AbortInfo.Builder addProjectsMissingPermission(String value)
       List of project IDs the user specified in the request but lacks access to.
       In this case, analysis is aborted with the PERMISSION_DENIED cause.
       
      repeated string projects_missing_permission = 3;
      Parameters:
      value - The projectsMissingPermission to add.
      Returns:
      This builder for chaining.
    • addAllProjectsMissingPermission

      public AbortInfo.Builder addAllProjectsMissingPermission(Iterable<String> values)
       List of project IDs the user specified in the request but lacks access to.
       In this case, analysis is aborted with the PERMISSION_DENIED cause.
       
      repeated string projects_missing_permission = 3;
      Parameters:
      values - The projectsMissingPermission to add.
      Returns:
      This builder for chaining.
    • clearProjectsMissingPermission

      public AbortInfo.Builder clearProjectsMissingPermission()
       List of project IDs the user specified in the request but lacks access to.
       In this case, analysis is aborted with the PERMISSION_DENIED cause.
       
      repeated string projects_missing_permission = 3;
      Returns:
      This builder for chaining.
    • addProjectsMissingPermissionBytes

      public AbortInfo.Builder addProjectsMissingPermissionBytes(com.google.protobuf.ByteString value)
       List of project IDs the user specified in the request but lacks access to.
       In this case, analysis is aborted with the PERMISSION_DENIED cause.
       
      repeated string projects_missing_permission = 3;
      Parameters:
      value - The bytes of the projectsMissingPermission to add.
      Returns:
      This builder for chaining.