Class ResourceInfo.Builder

  • All Implemented Interfaces:
    ResourceInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ResourceInfo

    public static final class ResourceInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>
    implements ResourceInfoOrBuilder
     Describes a resource referenced in the request.
     
    Protobuf type google.api.servicecontrol.v2.ResourceInfo
    • Method Detail

      • 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<ResourceInfo.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

        public ResourceInfo.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<ResourceInfo.Builder>
      • isInitialized

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

        public ResourceInfo.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<ResourceInfo.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         The name of the resource referenced in the request.
         
        string name = 1;
        Specified by:
        getName in interface ResourceInfoOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name of the resource referenced in the request.
         
        string name = 1;
        Specified by:
        getNameBytes in interface ResourceInfoOrBuilder
        Returns:
        The bytes for name.
      • setName

        public ResourceInfo.Builder setName​(String value)
         The name of the resource referenced in the request.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public ResourceInfo.Builder clearName()
         The name of the resource referenced in the request.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public ResourceInfo.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The name of the resource referenced in the request.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getType

        public String getType()
         The resource type in the format of "{service}/{kind}".
         
        string type = 2;
        Specified by:
        getType in interface ResourceInfoOrBuilder
        Returns:
        The type.
      • getTypeBytes

        public com.google.protobuf.ByteString getTypeBytes()
         The resource type in the format of "{service}/{kind}".
         
        string type = 2;
        Specified by:
        getTypeBytes in interface ResourceInfoOrBuilder
        Returns:
        The bytes for type.
      • setType

        public ResourceInfo.Builder setType​(String value)
         The resource type in the format of "{service}/{kind}".
         
        string type = 2;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public ResourceInfo.Builder clearType()
         The resource type in the format of "{service}/{kind}".
         
        string type = 2;
        Returns:
        This builder for chaining.
      • setTypeBytes

        public ResourceInfo.Builder setTypeBytes​(com.google.protobuf.ByteString value)
         The resource type in the format of "{service}/{kind}".
         
        string type = 2;
        Parameters:
        value - The bytes for type to set.
        Returns:
        This builder for chaining.
      • getPermission

        public String getPermission()
         The resource permission needed for this request.
         The format must be "{service}/{plural}.{verb}".
         
        string permission = 3;
        Specified by:
        getPermission in interface ResourceInfoOrBuilder
        Returns:
        The permission.
      • getPermissionBytes

        public com.google.protobuf.ByteString getPermissionBytes()
         The resource permission needed for this request.
         The format must be "{service}/{plural}.{verb}".
         
        string permission = 3;
        Specified by:
        getPermissionBytes in interface ResourceInfoOrBuilder
        Returns:
        The bytes for permission.
      • setPermission

        public ResourceInfo.Builder setPermission​(String value)
         The resource permission needed for this request.
         The format must be "{service}/{plural}.{verb}".
         
        string permission = 3;
        Parameters:
        value - The permission to set.
        Returns:
        This builder for chaining.
      • clearPermission

        public ResourceInfo.Builder clearPermission()
         The resource permission needed for this request.
         The format must be "{service}/{plural}.{verb}".
         
        string permission = 3;
        Returns:
        This builder for chaining.
      • setPermissionBytes

        public ResourceInfo.Builder setPermissionBytes​(com.google.protobuf.ByteString value)
         The resource permission needed for this request.
         The format must be "{service}/{plural}.{verb}".
         
        string permission = 3;
        Parameters:
        value - The bytes for permission to set.
        Returns:
        This builder for chaining.
      • getContainer

        public String getContainer()
         Optional. The identifier of the container of this resource. For Google
         Cloud APIs, the resource container must be one of the following formats:
             - `projects/<project-id or project-number>`
             - `folders/<folder-id>`
             - `organizations/<organization-id>`
         For the policy enforcement on the container level (VPCSC and Location
         Policy check), this field takes precedence on the container extracted from
         name when presents.
         
        string container = 4;
        Specified by:
        getContainer in interface ResourceInfoOrBuilder
        Returns:
        The container.
      • getContainerBytes

        public com.google.protobuf.ByteString getContainerBytes()
         Optional. The identifier of the container of this resource. For Google
         Cloud APIs, the resource container must be one of the following formats:
             - `projects/<project-id or project-number>`
             - `folders/<folder-id>`
             - `organizations/<organization-id>`
         For the policy enforcement on the container level (VPCSC and Location
         Policy check), this field takes precedence on the container extracted from
         name when presents.
         
        string container = 4;
        Specified by:
        getContainerBytes in interface ResourceInfoOrBuilder
        Returns:
        The bytes for container.
      • setContainer

        public ResourceInfo.Builder setContainer​(String value)
         Optional. The identifier of the container of this resource. For Google
         Cloud APIs, the resource container must be one of the following formats:
             - `projects/<project-id or project-number>`
             - `folders/<folder-id>`
             - `organizations/<organization-id>`
         For the policy enforcement on the container level (VPCSC and Location
         Policy check), this field takes precedence on the container extracted from
         name when presents.
         
        string container = 4;
        Parameters:
        value - The container to set.
        Returns:
        This builder for chaining.
      • clearContainer

        public ResourceInfo.Builder clearContainer()
         Optional. The identifier of the container of this resource. For Google
         Cloud APIs, the resource container must be one of the following formats:
             - `projects/<project-id or project-number>`
             - `folders/<folder-id>`
             - `organizations/<organization-id>`
         For the policy enforcement on the container level (VPCSC and Location
         Policy check), this field takes precedence on the container extracted from
         name when presents.
         
        string container = 4;
        Returns:
        This builder for chaining.
      • setContainerBytes

        public ResourceInfo.Builder setContainerBytes​(com.google.protobuf.ByteString value)
         Optional. The identifier of the container of this resource. For Google
         Cloud APIs, the resource container must be one of the following formats:
             - `projects/<project-id or project-number>`
             - `folders/<folder-id>`
             - `organizations/<organization-id>`
         For the policy enforcement on the container level (VPCSC and Location
         Policy check), this field takes precedence on the container extracted from
         name when presents.
         
        string container = 4;
        Parameters:
        value - The bytes for container to set.
        Returns:
        This builder for chaining.
      • getLocation

        public String getLocation()
         Optional. The location of the resource. The value must be a valid zone,
         region or multiregion. For example: "europe-west4" or
         "northamerica-northeast1-a"
         
        string location = 5;
        Specified by:
        getLocation in interface ResourceInfoOrBuilder
        Returns:
        The location.
      • getLocationBytes

        public com.google.protobuf.ByteString getLocationBytes()
         Optional. The location of the resource. The value must be a valid zone,
         region or multiregion. For example: "europe-west4" or
         "northamerica-northeast1-a"
         
        string location = 5;
        Specified by:
        getLocationBytes in interface ResourceInfoOrBuilder
        Returns:
        The bytes for location.
      • setLocation

        public ResourceInfo.Builder setLocation​(String value)
         Optional. The location of the resource. The value must be a valid zone,
         region or multiregion. For example: "europe-west4" or
         "northamerica-northeast1-a"
         
        string location = 5;
        Parameters:
        value - The location to set.
        Returns:
        This builder for chaining.
      • clearLocation

        public ResourceInfo.Builder clearLocation()
         Optional. The location of the resource. The value must be a valid zone,
         region or multiregion. For example: "europe-west4" or
         "northamerica-northeast1-a"
         
        string location = 5;
        Returns:
        This builder for chaining.
      • setLocationBytes

        public ResourceInfo.Builder setLocationBytes​(com.google.protobuf.ByteString value)
         Optional. The location of the resource. The value must be a valid zone,
         region or multiregion. For example: "europe-west4" or
         "northamerica-northeast1-a"
         
        string location = 5;
        Parameters:
        value - The bytes for location to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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