Class GlobalOrganizationSetPolicyRequest.Builder

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

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

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

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

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

        public int getBindingsCount()
         Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.
         
        repeated .google.cloud.compute.v1.Binding bindings = 403251854;
        Specified by:
        getBindingsCount in interface GlobalOrganizationSetPolicyRequestOrBuilder
      • getBindings

        public Binding getBindings​(int index)
         Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.
         
        repeated .google.cloud.compute.v1.Binding bindings = 403251854;
        Specified by:
        getBindings in interface GlobalOrganizationSetPolicyRequestOrBuilder
      • setBindings

        public GlobalOrganizationSetPolicyRequest.Builder setBindings​(int index,
                                                                      Binding value)
         Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.
         
        repeated .google.cloud.compute.v1.Binding bindings = 403251854;
      • setBindings

        public GlobalOrganizationSetPolicyRequest.Builder setBindings​(int index,
                                                                      Binding.Builder builderForValue)
         Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.
         
        repeated .google.cloud.compute.v1.Binding bindings = 403251854;
      • addBindings

        public GlobalOrganizationSetPolicyRequest.Builder addBindings​(Binding value)
         Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.
         
        repeated .google.cloud.compute.v1.Binding bindings = 403251854;
      • addBindings

        public GlobalOrganizationSetPolicyRequest.Builder addBindings​(int index,
                                                                      Binding value)
         Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.
         
        repeated .google.cloud.compute.v1.Binding bindings = 403251854;
      • addBindings

        public GlobalOrganizationSetPolicyRequest.Builder addBindings​(int index,
                                                                      Binding.Builder builderForValue)
         Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.
         
        repeated .google.cloud.compute.v1.Binding bindings = 403251854;
      • addAllBindings

        public GlobalOrganizationSetPolicyRequest.Builder addAllBindings​(Iterable<? extends Binding> values)
         Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.
         
        repeated .google.cloud.compute.v1.Binding bindings = 403251854;
      • clearBindings

        public GlobalOrganizationSetPolicyRequest.Builder clearBindings()
         Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.
         
        repeated .google.cloud.compute.v1.Binding bindings = 403251854;
      • removeBindings

        public GlobalOrganizationSetPolicyRequest.Builder removeBindings​(int index)
         Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.
         
        repeated .google.cloud.compute.v1.Binding bindings = 403251854;
      • getBindingsBuilder

        public Binding.Builder getBindingsBuilder​(int index)
         Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.
         
        repeated .google.cloud.compute.v1.Binding bindings = 403251854;
      • addBindingsBuilder

        public Binding.Builder addBindingsBuilder()
         Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.
         
        repeated .google.cloud.compute.v1.Binding bindings = 403251854;
      • addBindingsBuilder

        public Binding.Builder addBindingsBuilder​(int index)
         Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.
         
        repeated .google.cloud.compute.v1.Binding bindings = 403251854;
      • getBindingsBuilderList

        public List<Binding.Builder> getBindingsBuilderList()
         Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.
         
        repeated .google.cloud.compute.v1.Binding bindings = 403251854;
      • hasEtag

        public boolean hasEtag()
         Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.
         
        optional string etag = 3123477;
        Specified by:
        hasEtag in interface GlobalOrganizationSetPolicyRequestOrBuilder
        Returns:
        Whether the etag field is set.
      • getEtagBytes

        public com.google.protobuf.ByteString getEtagBytes()
         Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.
         
        optional string etag = 3123477;
        Specified by:
        getEtagBytes in interface GlobalOrganizationSetPolicyRequestOrBuilder
        Returns:
        The bytes for etag.
      • setEtag

        public GlobalOrganizationSetPolicyRequest.Builder setEtag​(String value)
         Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.
         
        optional string etag = 3123477;
        Parameters:
        value - The etag to set.
        Returns:
        This builder for chaining.
      • clearEtag

        public GlobalOrganizationSetPolicyRequest.Builder clearEtag()
         Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.
         
        optional string etag = 3123477;
        Returns:
        This builder for chaining.
      • setEtagBytes

        public GlobalOrganizationSetPolicyRequest.Builder setEtagBytes​(com.google.protobuf.ByteString value)
         Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.
         
        optional string etag = 3123477;
        Parameters:
        value - The bytes for etag to set.
        Returns:
        This builder for chaining.
      • hasPolicy

        public boolean hasPolicy()
         REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them.
         
        optional .google.cloud.compute.v1.Policy policy = 91071794;
        Specified by:
        hasPolicy in interface GlobalOrganizationSetPolicyRequestOrBuilder
        Returns:
        Whether the policy field is set.
      • getPolicy

        public Policy getPolicy()
         REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them.
         
        optional .google.cloud.compute.v1.Policy policy = 91071794;
        Specified by:
        getPolicy in interface GlobalOrganizationSetPolicyRequestOrBuilder
        Returns:
        The policy.
      • setPolicy

        public GlobalOrganizationSetPolicyRequest.Builder setPolicy​(Policy value)
         REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them.
         
        optional .google.cloud.compute.v1.Policy policy = 91071794;
      • setPolicy

        public GlobalOrganizationSetPolicyRequest.Builder setPolicy​(Policy.Builder builderForValue)
         REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them.
         
        optional .google.cloud.compute.v1.Policy policy = 91071794;
      • mergePolicy

        public GlobalOrganizationSetPolicyRequest.Builder mergePolicy​(Policy value)
         REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them.
         
        optional .google.cloud.compute.v1.Policy policy = 91071794;
      • clearPolicy

        public GlobalOrganizationSetPolicyRequest.Builder clearPolicy()
         REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them.
         
        optional .google.cloud.compute.v1.Policy policy = 91071794;
      • getPolicyBuilder

        public Policy.Builder getPolicyBuilder()
         REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them.
         
        optional .google.cloud.compute.v1.Policy policy = 91071794;
      • getPolicyOrBuilder

        public PolicyOrBuilder getPolicyOrBuilder()
         REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them.
         
        optional .google.cloud.compute.v1.Policy policy = 91071794;
        Specified by:
        getPolicyOrBuilder in interface GlobalOrganizationSetPolicyRequestOrBuilder