Package viam.app.v1

Class App.AuthorizedPermissions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<App.AuthorizedPermissions,App.AuthorizedPermissions.Builder>
viam.app.v1.App.AuthorizedPermissions.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, App.AuthorizedPermissionsOrBuilder
Enclosing class:
App.AuthorizedPermissions

public static final class App.AuthorizedPermissions.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<App.AuthorizedPermissions,App.AuthorizedPermissions.Builder> implements App.AuthorizedPermissionsOrBuilder
Protobuf type viam.app.v1.AuthorizedPermissions
  • Method Details

    • getResourceType

      public String getResourceType()
      string resource_type = 1 [json_name = "resourceType"];
      Specified by:
      getResourceType in interface App.AuthorizedPermissionsOrBuilder
      Returns:
      The resourceType.
    • getResourceTypeBytes

      public com.google.protobuf.ByteString getResourceTypeBytes()
      string resource_type = 1 [json_name = "resourceType"];
      Specified by:
      getResourceTypeBytes in interface App.AuthorizedPermissionsOrBuilder
      Returns:
      The bytes for resourceType.
    • setResourceType

      public App.AuthorizedPermissions.Builder setResourceType(String value)
      string resource_type = 1 [json_name = "resourceType"];
      Parameters:
      value - The resourceType to set.
      Returns:
      This builder for chaining.
    • clearResourceType

      public App.AuthorizedPermissions.Builder clearResourceType()
      string resource_type = 1 [json_name = "resourceType"];
      Returns:
      This builder for chaining.
    • setResourceTypeBytes

      public App.AuthorizedPermissions.Builder setResourceTypeBytes(com.google.protobuf.ByteString value)
      string resource_type = 1 [json_name = "resourceType"];
      Parameters:
      value - The bytes for resourceType to set.
      Returns:
      This builder for chaining.
    • getResourceId

      public String getResourceId()
      string resource_id = 2 [json_name = "resourceId"];
      Specified by:
      getResourceId in interface App.AuthorizedPermissionsOrBuilder
      Returns:
      The resourceId.
    • getResourceIdBytes

      public com.google.protobuf.ByteString getResourceIdBytes()
      string resource_id = 2 [json_name = "resourceId"];
      Specified by:
      getResourceIdBytes in interface App.AuthorizedPermissionsOrBuilder
      Returns:
      The bytes for resourceId.
    • setResourceId

      public App.AuthorizedPermissions.Builder setResourceId(String value)
      string resource_id = 2 [json_name = "resourceId"];
      Parameters:
      value - The resourceId to set.
      Returns:
      This builder for chaining.
    • clearResourceId

      public App.AuthorizedPermissions.Builder clearResourceId()
      string resource_id = 2 [json_name = "resourceId"];
      Returns:
      This builder for chaining.
    • setResourceIdBytes

      public App.AuthorizedPermissions.Builder setResourceIdBytes(com.google.protobuf.ByteString value)
      string resource_id = 2 [json_name = "resourceId"];
      Parameters:
      value - The bytes for resourceId to set.
      Returns:
      This builder for chaining.
    • getPermissionsList

      public List<String> getPermissionsList()
      repeated string permissions = 3 [json_name = "permissions"];
      Specified by:
      getPermissionsList in interface App.AuthorizedPermissionsOrBuilder
      Returns:
      A list containing the permissions.
    • getPermissionsCount

      public int getPermissionsCount()
      repeated string permissions = 3 [json_name = "permissions"];
      Specified by:
      getPermissionsCount in interface App.AuthorizedPermissionsOrBuilder
      Returns:
      The count of permissions.
    • getPermissions

      public String getPermissions(int index)
      repeated string permissions = 3 [json_name = "permissions"];
      Specified by:
      getPermissions in interface App.AuthorizedPermissionsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The permissions at the given index.
    • getPermissionsBytes

      public com.google.protobuf.ByteString getPermissionsBytes(int index)
      repeated string permissions = 3 [json_name = "permissions"];
      Specified by:
      getPermissionsBytes in interface App.AuthorizedPermissionsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the permissions at the given index.
    • setPermissions

      public App.AuthorizedPermissions.Builder setPermissions(int index, String value)
      repeated string permissions = 3 [json_name = "permissions"];
      Parameters:
      index - The index to set the value at.
      value - The permissions to set.
      Returns:
      This builder for chaining.
    • addPermissions

      public App.AuthorizedPermissions.Builder addPermissions(String value)
      repeated string permissions = 3 [json_name = "permissions"];
      Parameters:
      value - The permissions to add.
      Returns:
      This builder for chaining.
    • addAllPermissions

      public App.AuthorizedPermissions.Builder addAllPermissions(Iterable<String> values)
      repeated string permissions = 3 [json_name = "permissions"];
      Parameters:
      values - The permissions to add.
      Returns:
      This builder for chaining.
    • clearPermissions

      public App.AuthorizedPermissions.Builder clearPermissions()
      repeated string permissions = 3 [json_name = "permissions"];
      Returns:
      This builder for chaining.
    • addPermissionsBytes

      public App.AuthorizedPermissions.Builder addPermissionsBytes(com.google.protobuf.ByteString value)
      repeated string permissions = 3 [json_name = "permissions"];
      Parameters:
      value - The bytes of the permissions to add.
      Returns:
      This builder for chaining.