Class ResourceInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ResourceInfo.Builder>
com.google.api.servicecontrol.v2.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.GeneratedMessage.Builder<ResourceInfo.Builder> implements ResourceInfoOrBuilder
 Describes a resource referenced in the request.
 
Protobuf type google.api.servicecontrol.v2.ResourceInfo
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public ResourceInfo.Builder mergeFrom(ResourceInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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-number>`
       - `organizations/<organization-number>`
       Required for the policy enforcement on the container level (e.g. VPCSC,
       Location Policy check, Org Policy check).
       
      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-number>`
       - `organizations/<organization-number>`
       Required for the policy enforcement on the container level (e.g. VPCSC,
       Location Policy check, Org Policy check).
       
      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-number>`
       - `organizations/<organization-number>`
       Required for the policy enforcement on the container level (e.g. VPCSC,
       Location Policy check, Org Policy check).
       
      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-number>`
       - `organizations/<organization-number>`
       Required for the policy enforcement on the container level (e.g. VPCSC,
       Location Policy check, Org Policy check).
       
      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-number>`
       - `organizations/<organization-number>`
       Required for the policy enforcement on the container level (e.g. VPCSC,
       Location Policy check, Org Policy check).
       
      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, it must be a valid zone, region or
       multiregion, for example: "europe-west4", "northamerica-northeast1-a".
       Required for location policy check.
       
      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, it must be a valid zone, region or
       multiregion, for example: "europe-west4", "northamerica-northeast1-a".
       Required for location policy check.
       
      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, it must be a valid zone, region or
       multiregion, for example: "europe-west4", "northamerica-northeast1-a".
       Required for location policy check.
       
      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, it must be a valid zone, region or
       multiregion, for example: "europe-west4", "northamerica-northeast1-a".
       Required for location policy check.
       
      string location = 5;
      Returns:
      This builder for chaining.
    • setLocationBytes

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