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
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionaddAllPermissions
(Iterable<String> values) repeated string permissions = 3 [json_name = "permissions"];
addPermissions
(String value) repeated string permissions = 3 [json_name = "permissions"];
addPermissionsBytes
(com.google.protobuf.ByteString value) repeated string permissions = 3 [json_name = "permissions"];
repeated string permissions = 3 [json_name = "permissions"];
string resource_id = 2 [json_name = "resourceId"];
string resource_type = 1 [json_name = "resourceType"];
getPermissions
(int index) repeated string permissions = 3 [json_name = "permissions"];
com.google.protobuf.ByteString
getPermissionsBytes
(int index) repeated string permissions = 3 [json_name = "permissions"];
int
repeated string permissions = 3 [json_name = "permissions"];
repeated string permissions = 3 [json_name = "permissions"];
string resource_id = 2 [json_name = "resourceId"];
com.google.protobuf.ByteString
string resource_id = 2 [json_name = "resourceId"];
string resource_type = 1 [json_name = "resourceType"];
com.google.protobuf.ByteString
string resource_type = 1 [json_name = "resourceType"];
setPermissions
(int index, String value) repeated string permissions = 3 [json_name = "permissions"];
setResourceId
(String value) string resource_id = 2 [json_name = "resourceId"];
setResourceIdBytes
(com.google.protobuf.ByteString value) string resource_id = 2 [json_name = "resourceId"];
setResourceType
(String value) string resource_type = 1 [json_name = "resourceType"];
setResourceTypeBytes
(com.google.protobuf.ByteString value) string resource_type = 1 [json_name = "resourceType"];
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getResourceType
string resource_type = 1 [json_name = "resourceType"];
- Specified by:
getResourceType
in interfaceApp.AuthorizedPermissionsOrBuilder
- Returns:
- The resourceType.
-
getResourceTypeBytes
public com.google.protobuf.ByteString getResourceTypeBytes()string resource_type = 1 [json_name = "resourceType"];
- Specified by:
getResourceTypeBytes
in interfaceApp.AuthorizedPermissionsOrBuilder
- Returns:
- The bytes for resourceType.
-
setResourceType
string resource_type = 1 [json_name = "resourceType"];
- Parameters:
value
- The resourceType to set.- Returns:
- This builder for chaining.
-
clearResourceType
string resource_type = 1 [json_name = "resourceType"];
- Returns:
- This builder for chaining.
-
setResourceTypeBytes
string resource_type = 1 [json_name = "resourceType"];
- Parameters:
value
- The bytes for resourceType to set.- Returns:
- This builder for chaining.
-
getResourceId
string resource_id = 2 [json_name = "resourceId"];
- Specified by:
getResourceId
in interfaceApp.AuthorizedPermissionsOrBuilder
- Returns:
- The resourceId.
-
getResourceIdBytes
public com.google.protobuf.ByteString getResourceIdBytes()string resource_id = 2 [json_name = "resourceId"];
- Specified by:
getResourceIdBytes
in interfaceApp.AuthorizedPermissionsOrBuilder
- Returns:
- The bytes for resourceId.
-
setResourceId
string resource_id = 2 [json_name = "resourceId"];
- Parameters:
value
- The resourceId to set.- Returns:
- This builder for chaining.
-
clearResourceId
string resource_id = 2 [json_name = "resourceId"];
- Returns:
- This builder for chaining.
-
setResourceIdBytes
string resource_id = 2 [json_name = "resourceId"];
- Parameters:
value
- The bytes for resourceId to set.- Returns:
- This builder for chaining.
-
getPermissionsList
repeated string permissions = 3 [json_name = "permissions"];
- Specified by:
getPermissionsList
in interfaceApp.AuthorizedPermissionsOrBuilder
- Returns:
- A list containing the permissions.
-
getPermissionsCount
public int getPermissionsCount()repeated string permissions = 3 [json_name = "permissions"];
- Specified by:
getPermissionsCount
in interfaceApp.AuthorizedPermissionsOrBuilder
- Returns:
- The count of permissions.
-
getPermissions
repeated string permissions = 3 [json_name = "permissions"];
- Specified by:
getPermissions
in interfaceApp.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 interfaceApp.AuthorizedPermissionsOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the permissions at the given index.
-
setPermissions
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
repeated string permissions = 3 [json_name = "permissions"];
- Parameters:
value
- The permissions to add.- Returns:
- This builder for chaining.
-
addAllPermissions
repeated string permissions = 3 [json_name = "permissions"];
- Parameters:
values
- The permissions to add.- Returns:
- This builder for chaining.
-
clearPermissions
repeated string permissions = 3 [json_name = "permissions"];
- Returns:
- This builder for chaining.
-
addPermissionsBytes
repeated string permissions = 3 [json_name = "permissions"];
- Parameters:
value
- The bytes of the permissions to add.- Returns:
- This builder for chaining.
-