Class CustomRoleSpec.Resources.Builder

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

public static final class CustomRoleSpec.Resources.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CustomRoleSpec.Resources.Builder> implements CustomRoleSpec.ResourcesOrBuilder
Protobuf type temporal.api.cloud.identity.v1.CustomRoleSpec.Resources
  • 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.Resources.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.Resources.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.Resources.Builder>
    • getDefaultInstanceForType

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

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

      public CustomRoleSpec.Resources 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.Resources.Builder>
    • setField

      public CustomRoleSpec.Resources.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.Resources.Builder>
    • clearField

      public CustomRoleSpec.Resources.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.Resources.Builder>
    • clearOneof

      public CustomRoleSpec.Resources.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.Resources.Builder>
    • setRepeatedField

      public CustomRoleSpec.Resources.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.Resources.Builder>
    • addRepeatedField

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

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

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

      public String getResourceType()
       The resource type the permission applies to.
       
      string resource_type = 1;
      Specified by:
      getResourceType in interface CustomRoleSpec.ResourcesOrBuilder
      Returns:
      The resourceType.
    • getResourceTypeBytes

      public com.google.protobuf.ByteString getResourceTypeBytes()
       The resource type the permission applies to.
       
      string resource_type = 1;
      Specified by:
      getResourceTypeBytes in interface CustomRoleSpec.ResourcesOrBuilder
      Returns:
      The bytes for resourceType.
    • setResourceType

      public CustomRoleSpec.Resources.Builder setResourceType(String value)
       The resource type the permission applies to.
       
      string resource_type = 1;
      Parameters:
      value - The resourceType to set.
      Returns:
      This builder for chaining.
    • clearResourceType

      public CustomRoleSpec.Resources.Builder clearResourceType()
       The resource type the permission applies to.
       
      string resource_type = 1;
      Returns:
      This builder for chaining.
    • setResourceTypeBytes

      public CustomRoleSpec.Resources.Builder setResourceTypeBytes(com.google.protobuf.ByteString value)
       The resource type the permission applies to.
       
      string resource_type = 1;
      Parameters:
      value - The bytes for resourceType to set.
      Returns:
      This builder for chaining.
    • getResourceIdsList

      public com.google.protobuf.ProtocolStringList getResourceIdsList()
       The resource IDs the permission applies to. Can be empty if allow_all is true.
       
      repeated string resource_ids = 2;
      Specified by:
      getResourceIdsList in interface CustomRoleSpec.ResourcesOrBuilder
      Returns:
      A list containing the resourceIds.
    • getResourceIdsCount

      public int getResourceIdsCount()
       The resource IDs the permission applies to. Can be empty if allow_all is true.
       
      repeated string resource_ids = 2;
      Specified by:
      getResourceIdsCount in interface CustomRoleSpec.ResourcesOrBuilder
      Returns:
      The count of resourceIds.
    • getResourceIds

      public String getResourceIds(int index)
       The resource IDs the permission applies to. Can be empty if allow_all is true.
       
      repeated string resource_ids = 2;
      Specified by:
      getResourceIds in interface CustomRoleSpec.ResourcesOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The resourceIds at the given index.
    • getResourceIdsBytes

      public com.google.protobuf.ByteString getResourceIdsBytes(int index)
       The resource IDs the permission applies to. Can be empty if allow_all is true.
       
      repeated string resource_ids = 2;
      Specified by:
      getResourceIdsBytes in interface CustomRoleSpec.ResourcesOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the resourceIds at the given index.
    • setResourceIds

      public CustomRoleSpec.Resources.Builder setResourceIds(int index, String value)
       The resource IDs the permission applies to. Can be empty if allow_all is true.
       
      repeated string resource_ids = 2;
      Parameters:
      index - The index to set the value at.
      value - The resourceIds to set.
      Returns:
      This builder for chaining.
    • addResourceIds

      public CustomRoleSpec.Resources.Builder addResourceIds(String value)
       The resource IDs the permission applies to. Can be empty if allow_all is true.
       
      repeated string resource_ids = 2;
      Parameters:
      value - The resourceIds to add.
      Returns:
      This builder for chaining.
    • addAllResourceIds

      public CustomRoleSpec.Resources.Builder addAllResourceIds(Iterable<String> values)
       The resource IDs the permission applies to. Can be empty if allow_all is true.
       
      repeated string resource_ids = 2;
      Parameters:
      values - The resourceIds to add.
      Returns:
      This builder for chaining.
    • clearResourceIds

      public CustomRoleSpec.Resources.Builder clearResourceIds()
       The resource IDs the permission applies to. Can be empty if allow_all is true.
       
      repeated string resource_ids = 2;
      Returns:
      This builder for chaining.
    • addResourceIdsBytes

      public CustomRoleSpec.Resources.Builder addResourceIdsBytes(com.google.protobuf.ByteString value)
       The resource IDs the permission applies to. Can be empty if allow_all is true.
       
      repeated string resource_ids = 2;
      Parameters:
      value - The bytes of the resourceIds to add.
      Returns:
      This builder for chaining.
    • getAllowAll

      public boolean getAllowAll()
       Whether the permission applies to all resources of the given type.
       
      bool allow_all = 3;
      Specified by:
      getAllowAll in interface CustomRoleSpec.ResourcesOrBuilder
      Returns:
      The allowAll.
    • setAllowAll

      public CustomRoleSpec.Resources.Builder setAllowAll(boolean value)
       Whether the permission applies to all resources of the given type.
       
      bool allow_all = 3;
      Parameters:
      value - The allowAll to set.
      Returns:
      This builder for chaining.
    • clearAllowAll

      public CustomRoleSpec.Resources.Builder clearAllowAll()
       Whether the permission applies to all resources of the given type.
       
      bool allow_all = 3;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final CustomRoleSpec.Resources.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.Resources.Builder>
    • mergeUnknownFields

      public final CustomRoleSpec.Resources.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.Resources.Builder>