Class AnalyzeMoveRequest.Builder

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

    public static final class AnalyzeMoveRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AnalyzeMoveRequest.Builder>
    implements AnalyzeMoveRequestOrBuilder
     The request message for performing resource move analysis.
     
    Protobuf type google.cloud.asset.v1.AnalyzeMoveRequest
    • 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<AnalyzeMoveRequest.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public AnalyzeMoveRequest.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<AnalyzeMoveRequest.Builder>
        Throws:
        IOException
      • getResource

        public String getResource()
         Required. Name of the resource to perform the analysis against.
         Only Google Cloud projects are supported as of today. Hence, this can only
         be a project ID (such as "projects/my-project-id") or a project number
         (such as "projects/12345").
         
        string resource = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getResource in interface AnalyzeMoveRequestOrBuilder
        Returns:
        The resource.
      • getResourceBytes

        public com.google.protobuf.ByteString getResourceBytes()
         Required. Name of the resource to perform the analysis against.
         Only Google Cloud projects are supported as of today. Hence, this can only
         be a project ID (such as "projects/my-project-id") or a project number
         (such as "projects/12345").
         
        string resource = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getResourceBytes in interface AnalyzeMoveRequestOrBuilder
        Returns:
        The bytes for resource.
      • setResource

        public AnalyzeMoveRequest.Builder setResource​(String value)
         Required. Name of the resource to perform the analysis against.
         Only Google Cloud projects are supported as of today. Hence, this can only
         be a project ID (such as "projects/my-project-id") or a project number
         (such as "projects/12345").
         
        string resource = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The resource to set.
        Returns:
        This builder for chaining.
      • clearResource

        public AnalyzeMoveRequest.Builder clearResource()
         Required. Name of the resource to perform the analysis against.
         Only Google Cloud projects are supported as of today. Hence, this can only
         be a project ID (such as "projects/my-project-id") or a project number
         (such as "projects/12345").
         
        string resource = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setResourceBytes

        public AnalyzeMoveRequest.Builder setResourceBytes​(com.google.protobuf.ByteString value)
         Required. Name of the resource to perform the analysis against.
         Only Google Cloud projects are supported as of today. Hence, this can only
         be a project ID (such as "projects/my-project-id") or a project number
         (such as "projects/12345").
         
        string resource = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for resource to set.
        Returns:
        This builder for chaining.
      • getDestinationParent

        public String getDestinationParent()
         Required. Name of the Google Cloud folder or organization to reparent the
         target resource. The analysis will be performed against hypothetically
         moving the resource to this specified desitination parent. This can only be
         a folder number (such as "folders/123") or an organization number (such as
         "organizations/123").
         
        string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDestinationParent in interface AnalyzeMoveRequestOrBuilder
        Returns:
        The destinationParent.
      • getDestinationParentBytes

        public com.google.protobuf.ByteString getDestinationParentBytes()
         Required. Name of the Google Cloud folder or organization to reparent the
         target resource. The analysis will be performed against hypothetically
         moving the resource to this specified desitination parent. This can only be
         a folder number (such as "folders/123") or an organization number (such as
         "organizations/123").
         
        string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDestinationParentBytes in interface AnalyzeMoveRequestOrBuilder
        Returns:
        The bytes for destinationParent.
      • setDestinationParent

        public AnalyzeMoveRequest.Builder setDestinationParent​(String value)
         Required. Name of the Google Cloud folder or organization to reparent the
         target resource. The analysis will be performed against hypothetically
         moving the resource to this specified desitination parent. This can only be
         a folder number (such as "folders/123") or an organization number (such as
         "organizations/123").
         
        string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The destinationParent to set.
        Returns:
        This builder for chaining.
      • clearDestinationParent

        public AnalyzeMoveRequest.Builder clearDestinationParent()
         Required. Name of the Google Cloud folder or organization to reparent the
         target resource. The analysis will be performed against hypothetically
         moving the resource to this specified desitination parent. This can only be
         a folder number (such as "folders/123") or an organization number (such as
         "organizations/123").
         
        string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setDestinationParentBytes

        public AnalyzeMoveRequest.Builder setDestinationParentBytes​(com.google.protobuf.ByteString value)
         Required. Name of the Google Cloud folder or organization to reparent the
         target resource. The analysis will be performed against hypothetically
         moving the resource to this specified desitination parent. This can only be
         a folder number (such as "folders/123") or an organization number (such as
         "organizations/123").
         
        string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for destinationParent to set.
        Returns:
        This builder for chaining.
      • getViewValue

        public int getViewValue()
         Analysis view indicating what information should be included in the
         analysis response. If unspecified, the default view is FULL.
         
        .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3;
        Specified by:
        getViewValue in interface AnalyzeMoveRequestOrBuilder
        Returns:
        The enum numeric value on the wire for view.
      • setViewValue

        public AnalyzeMoveRequest.Builder setViewValue​(int value)
         Analysis view indicating what information should be included in the
         analysis response. If unspecified, the default view is FULL.
         
        .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3;
        Parameters:
        value - The enum numeric value on the wire for view to set.
        Returns:
        This builder for chaining.
      • getView

        public AnalyzeMoveRequest.AnalysisView getView()
         Analysis view indicating what information should be included in the
         analysis response. If unspecified, the default view is FULL.
         
        .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3;
        Specified by:
        getView in interface AnalyzeMoveRequestOrBuilder
        Returns:
        The view.
      • setView

        public AnalyzeMoveRequest.Builder setView​(AnalyzeMoveRequest.AnalysisView value)
         Analysis view indicating what information should be included in the
         analysis response. If unspecified, the default view is FULL.
         
        .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3;
        Parameters:
        value - The view to set.
        Returns:
        This builder for chaining.
      • clearView

        public AnalyzeMoveRequest.Builder clearView()
         Analysis view indicating what information should be included in the
         analysis response. If unspecified, the default view is FULL.
         
        .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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