Class RelationshipAttributes.Builder

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

    public static final class RelationshipAttributes.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<RelationshipAttributes.Builder>
    implements RelationshipAttributesOrBuilder
     DEPRECATED. This message only presents for the purpose of
     backward-compatibility. The server will never populate this message in
     responses.
     The relationship attributes which include  `type`, `source_resource_type`,
     `target_resource_type` and `action`.
     
    Protobuf type google.cloud.asset.v1.RelationshipAttributes
    • 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<RelationshipAttributes.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

        public RelationshipAttributes.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<RelationshipAttributes.Builder>
        Throws:
        IOException
      • getType

        public String getType()
         The unique identifier of the relationship type. Example:
         `INSTANCE_TO_INSTANCEGROUP`
         
        string type = 4;
        Specified by:
        getType in interface RelationshipAttributesOrBuilder
        Returns:
        The type.
      • getTypeBytes

        public com.google.protobuf.ByteString getTypeBytes()
         The unique identifier of the relationship type. Example:
         `INSTANCE_TO_INSTANCEGROUP`
         
        string type = 4;
        Specified by:
        getTypeBytes in interface RelationshipAttributesOrBuilder
        Returns:
        The bytes for type.
      • setType

        public RelationshipAttributes.Builder setType​(String value)
         The unique identifier of the relationship type. Example:
         `INSTANCE_TO_INSTANCEGROUP`
         
        string type = 4;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public RelationshipAttributes.Builder clearType()
         The unique identifier of the relationship type. Example:
         `INSTANCE_TO_INSTANCEGROUP`
         
        string type = 4;
        Returns:
        This builder for chaining.
      • setTypeBytes

        public RelationshipAttributes.Builder setTypeBytes​(com.google.protobuf.ByteString value)
         The unique identifier of the relationship type. Example:
         `INSTANCE_TO_INSTANCEGROUP`
         
        string type = 4;
        Parameters:
        value - The bytes for type to set.
        Returns:
        This builder for chaining.
      • getSourceResourceTypeBytes

        public com.google.protobuf.ByteString getSourceResourceTypeBytes()
         The source asset type. Example: `compute.googleapis.com/Instance`
         
        string source_resource_type = 1;
        Specified by:
        getSourceResourceTypeBytes in interface RelationshipAttributesOrBuilder
        Returns:
        The bytes for sourceResourceType.
      • setSourceResourceType

        public RelationshipAttributes.Builder setSourceResourceType​(String value)
         The source asset type. Example: `compute.googleapis.com/Instance`
         
        string source_resource_type = 1;
        Parameters:
        value - The sourceResourceType to set.
        Returns:
        This builder for chaining.
      • clearSourceResourceType

        public RelationshipAttributes.Builder clearSourceResourceType()
         The source asset type. Example: `compute.googleapis.com/Instance`
         
        string source_resource_type = 1;
        Returns:
        This builder for chaining.
      • setSourceResourceTypeBytes

        public RelationshipAttributes.Builder setSourceResourceTypeBytes​(com.google.protobuf.ByteString value)
         The source asset type. Example: `compute.googleapis.com/Instance`
         
        string source_resource_type = 1;
        Parameters:
        value - The bytes for sourceResourceType to set.
        Returns:
        This builder for chaining.
      • getTargetResourceTypeBytes

        public com.google.protobuf.ByteString getTargetResourceTypeBytes()
         The target asset type. Example: `compute.googleapis.com/Disk`
         
        string target_resource_type = 2;
        Specified by:
        getTargetResourceTypeBytes in interface RelationshipAttributesOrBuilder
        Returns:
        The bytes for targetResourceType.
      • setTargetResourceType

        public RelationshipAttributes.Builder setTargetResourceType​(String value)
         The target asset type. Example: `compute.googleapis.com/Disk`
         
        string target_resource_type = 2;
        Parameters:
        value - The targetResourceType to set.
        Returns:
        This builder for chaining.
      • clearTargetResourceType

        public RelationshipAttributes.Builder clearTargetResourceType()
         The target asset type. Example: `compute.googleapis.com/Disk`
         
        string target_resource_type = 2;
        Returns:
        This builder for chaining.
      • setTargetResourceTypeBytes

        public RelationshipAttributes.Builder setTargetResourceTypeBytes​(com.google.protobuf.ByteString value)
         The target asset type. Example: `compute.googleapis.com/Disk`
         
        string target_resource_type = 2;
        Parameters:
        value - The bytes for targetResourceType to set.
        Returns:
        This builder for chaining.
      • getActionBytes

        public com.google.protobuf.ByteString getActionBytes()
         The detail of the relationship, e.g. `contains`, `attaches`
         
        string action = 3;
        Specified by:
        getActionBytes in interface RelationshipAttributesOrBuilder
        Returns:
        The bytes for action.
      • setAction

        public RelationshipAttributes.Builder setAction​(String value)
         The detail of the relationship, e.g. `contains`, `attaches`
         
        string action = 3;
        Parameters:
        value - The action to set.
        Returns:
        This builder for chaining.
      • clearAction

        public RelationshipAttributes.Builder clearAction()
         The detail of the relationship, e.g. `contains`, `attaches`
         
        string action = 3;
        Returns:
        This builder for chaining.
      • setActionBytes

        public RelationshipAttributes.Builder setActionBytes​(com.google.protobuf.ByteString value)
         The detail of the relationship, e.g. `contains`, `attaches`
         
        string action = 3;
        Parameters:
        value - The bytes for action to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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