Class VersionedResource.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VersionedResource.Builder>
com.google.cloud.asset.v1.VersionedResource.Builder
All Implemented Interfaces:
VersionedResourceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
VersionedResource

public static final class VersionedResource.Builder extends com.google.protobuf.GeneratedMessage.Builder<VersionedResource.Builder> implements VersionedResourceOrBuilder
 Resource representation as defined by the corresponding service providing the
 resource for a given API version.
 
Protobuf type google.cloud.asset.v1.VersionedResource
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    JSON representation of the resource as defined by the corresponding service providing this resource.
    API version of the resource.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Struct
    JSON representation of the resource as defined by the corresponding service providing this resource.
    com.google.protobuf.Struct.Builder
    JSON representation of the resource as defined by the corresponding service providing this resource.
    com.google.protobuf.StructOrBuilder
    JSON representation of the resource as defined by the corresponding service providing this resource.
    API version of the resource.
    com.google.protobuf.ByteString
    API version of the resource.
    boolean
    JSON representation of the resource as defined by the corresponding service providing this resource.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergeResource(com.google.protobuf.Struct value)
    JSON representation of the resource as defined by the corresponding service providing this resource.
    setResource(com.google.protobuf.Struct value)
    JSON representation of the resource as defined by the corresponding service providing this resource.
    setResource(com.google.protobuf.Struct.Builder builderForValue)
    JSON representation of the resource as defined by the corresponding service providing this resource.
    API version of the resource.
    setVersionBytes(com.google.protobuf.ByteString value)
    API version of the resource.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<VersionedResource.Builder>
    • clear

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

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

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

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

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

      public VersionedResource.Builder mergeFrom(VersionedResource other)
    • isInitialized

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

      public VersionedResource.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<VersionedResource.Builder>
      Throws:
      IOException
    • getVersion

      public String getVersion()
       API version of the resource.
      
       Example:
       If the resource is an instance provided by Compute Engine v1 API as defined
       in `https://cloud.google.com/compute/docs/reference/rest/v1/instances`,
       version will be "v1".
       
      string version = 1;
      Specified by:
      getVersion in interface VersionedResourceOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
       API version of the resource.
      
       Example:
       If the resource is an instance provided by Compute Engine v1 API as defined
       in `https://cloud.google.com/compute/docs/reference/rest/v1/instances`,
       version will be "v1".
       
      string version = 1;
      Specified by:
      getVersionBytes in interface VersionedResourceOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public VersionedResource.Builder setVersion(String value)
       API version of the resource.
      
       Example:
       If the resource is an instance provided by Compute Engine v1 API as defined
       in `https://cloud.google.com/compute/docs/reference/rest/v1/instances`,
       version will be "v1".
       
      string version = 1;
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public VersionedResource.Builder clearVersion()
       API version of the resource.
      
       Example:
       If the resource is an instance provided by Compute Engine v1 API as defined
       in `https://cloud.google.com/compute/docs/reference/rest/v1/instances`,
       version will be "v1".
       
      string version = 1;
      Returns:
      This builder for chaining.
    • setVersionBytes

      public VersionedResource.Builder setVersionBytes(com.google.protobuf.ByteString value)
       API version of the resource.
      
       Example:
       If the resource is an instance provided by Compute Engine v1 API as defined
       in `https://cloud.google.com/compute/docs/reference/rest/v1/instances`,
       version will be "v1".
       
      string version = 1;
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.
    • hasResource

      public boolean hasResource()
       JSON representation of the resource as defined by the corresponding
       service providing this resource.
      
       Example:
       If the resource is an instance provided by Compute Engine, this field will
       contain the JSON representation of the instance as defined by Compute
       Engine:
       `https://cloud.google.com/compute/docs/reference/rest/v1/instances`.
      
       You can find the resource definition for each supported resource type in
       this table:
       `https://cloud.google.com/asset-inventory/docs/supported-asset-types`
       
      .google.protobuf.Struct resource = 2;
      Specified by:
      hasResource in interface VersionedResourceOrBuilder
      Returns:
      Whether the resource field is set.
    • getResource

      public com.google.protobuf.Struct getResource()
       JSON representation of the resource as defined by the corresponding
       service providing this resource.
      
       Example:
       If the resource is an instance provided by Compute Engine, this field will
       contain the JSON representation of the instance as defined by Compute
       Engine:
       `https://cloud.google.com/compute/docs/reference/rest/v1/instances`.
      
       You can find the resource definition for each supported resource type in
       this table:
       `https://cloud.google.com/asset-inventory/docs/supported-asset-types`
       
      .google.protobuf.Struct resource = 2;
      Specified by:
      getResource in interface VersionedResourceOrBuilder
      Returns:
      The resource.
    • setResource

      public VersionedResource.Builder setResource(com.google.protobuf.Struct value)
       JSON representation of the resource as defined by the corresponding
       service providing this resource.
      
       Example:
       If the resource is an instance provided by Compute Engine, this field will
       contain the JSON representation of the instance as defined by Compute
       Engine:
       `https://cloud.google.com/compute/docs/reference/rest/v1/instances`.
      
       You can find the resource definition for each supported resource type in
       this table:
       `https://cloud.google.com/asset-inventory/docs/supported-asset-types`
       
      .google.protobuf.Struct resource = 2;
    • setResource

      public VersionedResource.Builder setResource(com.google.protobuf.Struct.Builder builderForValue)
       JSON representation of the resource as defined by the corresponding
       service providing this resource.
      
       Example:
       If the resource is an instance provided by Compute Engine, this field will
       contain the JSON representation of the instance as defined by Compute
       Engine:
       `https://cloud.google.com/compute/docs/reference/rest/v1/instances`.
      
       You can find the resource definition for each supported resource type in
       this table:
       `https://cloud.google.com/asset-inventory/docs/supported-asset-types`
       
      .google.protobuf.Struct resource = 2;
    • mergeResource

      public VersionedResource.Builder mergeResource(com.google.protobuf.Struct value)
       JSON representation of the resource as defined by the corresponding
       service providing this resource.
      
       Example:
       If the resource is an instance provided by Compute Engine, this field will
       contain the JSON representation of the instance as defined by Compute
       Engine:
       `https://cloud.google.com/compute/docs/reference/rest/v1/instances`.
      
       You can find the resource definition for each supported resource type in
       this table:
       `https://cloud.google.com/asset-inventory/docs/supported-asset-types`
       
      .google.protobuf.Struct resource = 2;
    • clearResource

      public VersionedResource.Builder clearResource()
       JSON representation of the resource as defined by the corresponding
       service providing this resource.
      
       Example:
       If the resource is an instance provided by Compute Engine, this field will
       contain the JSON representation of the instance as defined by Compute
       Engine:
       `https://cloud.google.com/compute/docs/reference/rest/v1/instances`.
      
       You can find the resource definition for each supported resource type in
       this table:
       `https://cloud.google.com/asset-inventory/docs/supported-asset-types`
       
      .google.protobuf.Struct resource = 2;
    • getResourceBuilder

      public com.google.protobuf.Struct.Builder getResourceBuilder()
       JSON representation of the resource as defined by the corresponding
       service providing this resource.
      
       Example:
       If the resource is an instance provided by Compute Engine, this field will
       contain the JSON representation of the instance as defined by Compute
       Engine:
       `https://cloud.google.com/compute/docs/reference/rest/v1/instances`.
      
       You can find the resource definition for each supported resource type in
       this table:
       `https://cloud.google.com/asset-inventory/docs/supported-asset-types`
       
      .google.protobuf.Struct resource = 2;
    • getResourceOrBuilder

      public com.google.protobuf.StructOrBuilder getResourceOrBuilder()
       JSON representation of the resource as defined by the corresponding
       service providing this resource.
      
       Example:
       If the resource is an instance provided by Compute Engine, this field will
       contain the JSON representation of the instance as defined by Compute
       Engine:
       `https://cloud.google.com/compute/docs/reference/rest/v1/instances`.
      
       You can find the resource definition for each supported resource type in
       this table:
       `https://cloud.google.com/asset-inventory/docs/supported-asset-types`
       
      .google.protobuf.Struct resource = 2;
      Specified by:
      getResourceOrBuilder in interface VersionedResourceOrBuilder