Class CustomRoleSpec.Permission.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CustomRoleSpec.Permission.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<CustomRoleSpec.Permission.Builder>
io.temporal.api.cloud.identity.v1.CustomRoleSpec.Permission.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, CustomRoleSpec.PermissionOrBuilder, Cloneable
Enclosing class:
CustomRoleSpec.Permission

public static final class CustomRoleSpec.Permission.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CustomRoleSpec.Permission.Builder> implements CustomRoleSpec.PermissionOrBuilder
Protobuf type temporal.api.cloud.identity.v1.CustomRoleSpec.Permission
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CustomRoleSpec.Permission.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.GeneratedMessageV3.Builder<CustomRoleSpec.Permission.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.GeneratedMessageV3.Builder<CustomRoleSpec.Permission.Builder>
    • getDefaultInstanceForType

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

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

      public CustomRoleSpec.Permission buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<CustomRoleSpec.Permission.Builder>
    • setField

      public CustomRoleSpec.Permission.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<CustomRoleSpec.Permission.Builder>
    • clearField

      public CustomRoleSpec.Permission.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CustomRoleSpec.Permission.Builder>
    • clearOneof

      public CustomRoleSpec.Permission.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CustomRoleSpec.Permission.Builder>
    • setRepeatedField

      public CustomRoleSpec.Permission.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CustomRoleSpec.Permission.Builder>
    • addRepeatedField

      public CustomRoleSpec.Permission.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CustomRoleSpec.Permission.Builder>
    • mergeFrom

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

    • isInitialized

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

      public CustomRoleSpec.Permission.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<CustomRoleSpec.Permission.Builder>
      Throws:
      IOException
    • hasResources

      public boolean hasResources()
       The resources the permission applies to.
       
      .temporal.api.cloud.identity.v1.CustomRoleSpec.Resources resources = 1;
      Specified by:
      hasResources in interface CustomRoleSpec.PermissionOrBuilder
      Returns:
      Whether the resources field is set.
    • getResources

      public CustomRoleSpec.Resources getResources()
       The resources the permission applies to.
       
      .temporal.api.cloud.identity.v1.CustomRoleSpec.Resources resources = 1;
      Specified by:
      getResources in interface CustomRoleSpec.PermissionOrBuilder
      Returns:
      The resources.
    • setResources

       The resources the permission applies to.
       
      .temporal.api.cloud.identity.v1.CustomRoleSpec.Resources resources = 1;
    • setResources

       The resources the permission applies to.
       
      .temporal.api.cloud.identity.v1.CustomRoleSpec.Resources resources = 1;
    • mergeResources

       The resources the permission applies to.
       
      .temporal.api.cloud.identity.v1.CustomRoleSpec.Resources resources = 1;
    • clearResources

      public CustomRoleSpec.Permission.Builder clearResources()
       The resources the permission applies to.
       
      .temporal.api.cloud.identity.v1.CustomRoleSpec.Resources resources = 1;
    • getResourcesBuilder

      public CustomRoleSpec.Resources.Builder getResourcesBuilder()
       The resources the permission applies to.
       
      .temporal.api.cloud.identity.v1.CustomRoleSpec.Resources resources = 1;
    • getResourcesOrBuilder

      public CustomRoleSpec.ResourcesOrBuilder getResourcesOrBuilder()
       The resources the permission applies to.
       
      .temporal.api.cloud.identity.v1.CustomRoleSpec.Resources resources = 1;
      Specified by:
      getResourcesOrBuilder in interface CustomRoleSpec.PermissionOrBuilder
    • getActionsList

      public com.google.protobuf.ProtocolStringList getActionsList()
       The actions allowed by the permission.
       
      repeated string actions = 2;
      Specified by:
      getActionsList in interface CustomRoleSpec.PermissionOrBuilder
      Returns:
      A list containing the actions.
    • getActionsCount

      public int getActionsCount()
       The actions allowed by the permission.
       
      repeated string actions = 2;
      Specified by:
      getActionsCount in interface CustomRoleSpec.PermissionOrBuilder
      Returns:
      The count of actions.
    • getActions

      public String getActions(int index)
       The actions allowed by the permission.
       
      repeated string actions = 2;
      Specified by:
      getActions in interface CustomRoleSpec.PermissionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The actions at the given index.
    • getActionsBytes

      public com.google.protobuf.ByteString getActionsBytes(int index)
       The actions allowed by the permission.
       
      repeated string actions = 2;
      Specified by:
      getActionsBytes in interface CustomRoleSpec.PermissionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the actions at the given index.
    • setActions

      public CustomRoleSpec.Permission.Builder setActions(int index, String value)
       The actions allowed by the permission.
       
      repeated string actions = 2;
      Parameters:
      index - The index to set the value at.
      value - The actions to set.
      Returns:
      This builder for chaining.
    • addActions

      public CustomRoleSpec.Permission.Builder addActions(String value)
       The actions allowed by the permission.
       
      repeated string actions = 2;
      Parameters:
      value - The actions to add.
      Returns:
      This builder for chaining.
    • addAllActions

      public CustomRoleSpec.Permission.Builder addAllActions(Iterable<String> values)
       The actions allowed by the permission.
       
      repeated string actions = 2;
      Parameters:
      values - The actions to add.
      Returns:
      This builder for chaining.
    • clearActions

      public CustomRoleSpec.Permission.Builder clearActions()
       The actions allowed by the permission.
       
      repeated string actions = 2;
      Returns:
      This builder for chaining.
    • addActionsBytes

      public CustomRoleSpec.Permission.Builder addActionsBytes(com.google.protobuf.ByteString value)
       The actions allowed by the permission.
       
      repeated string actions = 2;
      Parameters:
      value - The bytes of the actions to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final CustomRoleSpec.Permission.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CustomRoleSpec.Permission.Builder>
    • mergeUnknownFields

      public final CustomRoleSpec.Permission.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CustomRoleSpec.Permission.Builder>