Class ConditionContext.Resource.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ConditionContext.Resource.Builder>
com.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Resource.Builder
All Implemented Interfaces:
ConditionContext.ResourceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ConditionContext.Resource

public static final class ConditionContext.Resource.Builder extends com.google.protobuf.GeneratedMessage.Builder<ConditionContext.Resource.Builder> implements ConditionContext.ResourceOrBuilder
 Core attributes for a resource. A resource is an
 addressable (named) entity provided by the destination service. For
 example, a Compute Engine instance.
 
Protobuf type google.cloud.policytroubleshooter.iam.v3.ConditionContext.Resource
  • 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<ConditionContext.Resource.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<ConditionContext.Resource.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<ConditionContext.Resource.Builder>
    • getDefaultInstanceForType

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

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

      public ConditionContext.Resource buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

    • isInitialized

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

      public ConditionContext.Resource.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<ConditionContext.Resource.Builder>
      Throws:
      IOException
    • getService

      public String getService()
       The name of the service that this resource belongs to, such as
       `compute.googleapis.com`. The service name might not match the DNS
       hostname that actually serves the request.
      
       For a full list of resource service values, see
       https://cloud.google.com/iam/help/conditions/resource-services
       
      string service = 1;
      Specified by:
      getService in interface ConditionContext.ResourceOrBuilder
      Returns:
      The service.
    • getServiceBytes

      public com.google.protobuf.ByteString getServiceBytes()
       The name of the service that this resource belongs to, such as
       `compute.googleapis.com`. The service name might not match the DNS
       hostname that actually serves the request.
      
       For a full list of resource service values, see
       https://cloud.google.com/iam/help/conditions/resource-services
       
      string service = 1;
      Specified by:
      getServiceBytes in interface ConditionContext.ResourceOrBuilder
      Returns:
      The bytes for service.
    • setService

      public ConditionContext.Resource.Builder setService(String value)
       The name of the service that this resource belongs to, such as
       `compute.googleapis.com`. The service name might not match the DNS
       hostname that actually serves the request.
      
       For a full list of resource service values, see
       https://cloud.google.com/iam/help/conditions/resource-services
       
      string service = 1;
      Parameters:
      value - The service to set.
      Returns:
      This builder for chaining.
    • clearService

      public ConditionContext.Resource.Builder clearService()
       The name of the service that this resource belongs to, such as
       `compute.googleapis.com`. The service name might not match the DNS
       hostname that actually serves the request.
      
       For a full list of resource service values, see
       https://cloud.google.com/iam/help/conditions/resource-services
       
      string service = 1;
      Returns:
      This builder for chaining.
    • setServiceBytes

      public ConditionContext.Resource.Builder setServiceBytes(com.google.protobuf.ByteString value)
       The name of the service that this resource belongs to, such as
       `compute.googleapis.com`. The service name might not match the DNS
       hostname that actually serves the request.
      
       For a full list of resource service values, see
       https://cloud.google.com/iam/help/conditions/resource-services
       
      string service = 1;
      Parameters:
      value - The bytes for service to set.
      Returns:
      This builder for chaining.
    • getName

      public String getName()
       The stable identifier (name) of a resource on the `service`. A resource
       can be logically identified as `//{resource.service}/{resource.name}`.
       Unlike the resource URI, the resource name doesn't contain any protocol
       and version information.
      
       For a list of full resource name formats, see
       https://cloud.google.com/iam/help/troubleshooter/full-resource-names
       
      string name = 2;
      Specified by:
      getName in interface ConditionContext.ResourceOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The stable identifier (name) of a resource on the `service`. A resource
       can be logically identified as `//{resource.service}/{resource.name}`.
       Unlike the resource URI, the resource name doesn't contain any protocol
       and version information.
      
       For a list of full resource name formats, see
       https://cloud.google.com/iam/help/troubleshooter/full-resource-names
       
      string name = 2;
      Specified by:
      getNameBytes in interface ConditionContext.ResourceOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ConditionContext.Resource.Builder setName(String value)
       The stable identifier (name) of a resource on the `service`. A resource
       can be logically identified as `//{resource.service}/{resource.name}`.
       Unlike the resource URI, the resource name doesn't contain any protocol
       and version information.
      
       For a list of full resource name formats, see
       https://cloud.google.com/iam/help/troubleshooter/full-resource-names
       
      string name = 2;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       The stable identifier (name) of a resource on the `service`. A resource
       can be logically identified as `//{resource.service}/{resource.name}`.
       Unlike the resource URI, the resource name doesn't contain any protocol
       and version information.
      
       For a list of full resource name formats, see
       https://cloud.google.com/iam/help/troubleshooter/full-resource-names
       
      string name = 2;
      Returns:
      This builder for chaining.
    • setNameBytes

      public ConditionContext.Resource.Builder setNameBytes(com.google.protobuf.ByteString value)
       The stable identifier (name) of a resource on the `service`. A resource
       can be logically identified as `//{resource.service}/{resource.name}`.
       Unlike the resource URI, the resource name doesn't contain any protocol
       and version information.
      
       For a list of full resource name formats, see
       https://cloud.google.com/iam/help/troubleshooter/full-resource-names
       
      string name = 2;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getType

      public String getType()
       The type of the resource, in the format `{service}/{kind}`.
      
       For a full list of resource type values, see
       https://cloud.google.com/iam/help/conditions/resource-types
       
      string type = 3;
      Specified by:
      getType in interface ConditionContext.ResourceOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       The type of the resource, in the format `{service}/{kind}`.
      
       For a full list of resource type values, see
       https://cloud.google.com/iam/help/conditions/resource-types
       
      string type = 3;
      Specified by:
      getTypeBytes in interface ConditionContext.ResourceOrBuilder
      Returns:
      The bytes for type.
    • setType

      public ConditionContext.Resource.Builder setType(String value)
       The type of the resource, in the format `{service}/{kind}`.
      
       For a full list of resource type values, see
       https://cloud.google.com/iam/help/conditions/resource-types
       
      string type = 3;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

       The type of the resource, in the format `{service}/{kind}`.
      
       For a full list of resource type values, see
       https://cloud.google.com/iam/help/conditions/resource-types
       
      string type = 3;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public ConditionContext.Resource.Builder setTypeBytes(com.google.protobuf.ByteString value)
       The type of the resource, in the format `{service}/{kind}`.
      
       For a full list of resource type values, see
       https://cloud.google.com/iam/help/conditions/resource-types
       
      string type = 3;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.