Class TemporalAsset.Builder (3.6.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class TemporalAsset.Builder extends GeneratedMessageV3.Builder<TemporalAsset.Builder> implements TemporalAssetOrBuilder

An asset in Google Cloud and its temporal metadata, including the time window when it was observed and its status during that window.

Protobuf type google.cloud.asset.v1.TemporalAsset

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TemporalAsset.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TemporalAsset.Builder
Overrides

build()

public TemporalAsset build()
Returns
TypeDescription
TemporalAsset

buildPartial()

public TemporalAsset buildPartial()
Returns
TypeDescription
TemporalAsset

clear()

public TemporalAsset.Builder clear()
Returns
TypeDescription
TemporalAsset.Builder
Overrides

clearAsset()

public TemporalAsset.Builder clearAsset()

An asset in Google Cloud.

.google.cloud.asset.v1.Asset asset = 3;

Returns
TypeDescription
TemporalAsset.Builder

clearDeleted()

public TemporalAsset.Builder clearDeleted()

Whether the asset has been deleted or not.

bool deleted = 2;

Returns
TypeDescription
TemporalAsset.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TemporalAsset.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TemporalAsset.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TemporalAsset.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TemporalAsset.Builder
Overrides

clearPriorAsset()

public TemporalAsset.Builder clearPriorAsset()

Prior copy of the asset. Populated if prior_asset_state is PRESENT. Currently this is only set for responses in Real-Time Feed.

.google.cloud.asset.v1.Asset prior_asset = 5;

Returns
TypeDescription
TemporalAsset.Builder

clearPriorAssetState()

public TemporalAsset.Builder clearPriorAssetState()

State of prior_asset.

.google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4;

Returns
TypeDescription
TemporalAsset.Builder

This builder for chaining.

clearWindow()

public TemporalAsset.Builder clearWindow()

The time window when the asset data and state was observed.

.google.cloud.asset.v1.TimeWindow window = 1;

Returns
TypeDescription
TemporalAsset.Builder

clone()

public TemporalAsset.Builder clone()
Returns
TypeDescription
TemporalAsset.Builder
Overrides

getAsset()

public Asset getAsset()

An asset in Google Cloud.

.google.cloud.asset.v1.Asset asset = 3;

Returns
TypeDescription
Asset

The asset.

getAssetBuilder()

public Asset.Builder getAssetBuilder()

An asset in Google Cloud.

.google.cloud.asset.v1.Asset asset = 3;

Returns
TypeDescription
Asset.Builder

getAssetOrBuilder()

public AssetOrBuilder getAssetOrBuilder()

An asset in Google Cloud.

.google.cloud.asset.v1.Asset asset = 3;

Returns
TypeDescription
AssetOrBuilder

getDefaultInstanceForType()

public TemporalAsset getDefaultInstanceForType()
Returns
TypeDescription
TemporalAsset

getDeleted()

public boolean getDeleted()

Whether the asset has been deleted or not.

bool deleted = 2;

Returns
TypeDescription
boolean

The deleted.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPriorAsset()

public Asset getPriorAsset()

Prior copy of the asset. Populated if prior_asset_state is PRESENT. Currently this is only set for responses in Real-Time Feed.

.google.cloud.asset.v1.Asset prior_asset = 5;

Returns
TypeDescription
Asset

The priorAsset.

getPriorAssetBuilder()

public Asset.Builder getPriorAssetBuilder()

Prior copy of the asset. Populated if prior_asset_state is PRESENT. Currently this is only set for responses in Real-Time Feed.

.google.cloud.asset.v1.Asset prior_asset = 5;

Returns
TypeDescription
Asset.Builder

getPriorAssetOrBuilder()

public AssetOrBuilder getPriorAssetOrBuilder()

Prior copy of the asset. Populated if prior_asset_state is PRESENT. Currently this is only set for responses in Real-Time Feed.

.google.cloud.asset.v1.Asset prior_asset = 5;

Returns
TypeDescription
AssetOrBuilder

getPriorAssetState()

public TemporalAsset.PriorAssetState getPriorAssetState()

State of prior_asset.

.google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4;

Returns
TypeDescription
TemporalAsset.PriorAssetState

The priorAssetState.

getPriorAssetStateValue()

public int getPriorAssetStateValue()

State of prior_asset.

.google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for priorAssetState.

getWindow()

public TimeWindow getWindow()

The time window when the asset data and state was observed.

.google.cloud.asset.v1.TimeWindow window = 1;

Returns
TypeDescription
TimeWindow

The window.

getWindowBuilder()

public TimeWindow.Builder getWindowBuilder()

The time window when the asset data and state was observed.

.google.cloud.asset.v1.TimeWindow window = 1;

Returns
TypeDescription
TimeWindow.Builder

getWindowOrBuilder()

public TimeWindowOrBuilder getWindowOrBuilder()

The time window when the asset data and state was observed.

.google.cloud.asset.v1.TimeWindow window = 1;

Returns
TypeDescription
TimeWindowOrBuilder

hasAsset()

public boolean hasAsset()

An asset in Google Cloud.

.google.cloud.asset.v1.Asset asset = 3;

Returns
TypeDescription
boolean

Whether the asset field is set.

hasPriorAsset()

public boolean hasPriorAsset()

Prior copy of the asset. Populated if prior_asset_state is PRESENT. Currently this is only set for responses in Real-Time Feed.

.google.cloud.asset.v1.Asset prior_asset = 5;

Returns
TypeDescription
boolean

Whether the priorAsset field is set.

hasWindow()

public boolean hasWindow()

The time window when the asset data and state was observed.

.google.cloud.asset.v1.TimeWindow window = 1;

Returns
TypeDescription
boolean

Whether the window field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAsset(Asset value)

public TemporalAsset.Builder mergeAsset(Asset value)

An asset in Google Cloud.

.google.cloud.asset.v1.Asset asset = 3;

Parameter
NameDescription
valueAsset
Returns
TypeDescription
TemporalAsset.Builder

mergeFrom(TemporalAsset other)

public TemporalAsset.Builder mergeFrom(TemporalAsset other)
Parameter
NameDescription
otherTemporalAsset
Returns
TypeDescription
TemporalAsset.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TemporalAsset.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TemporalAsset.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TemporalAsset.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TemporalAsset.Builder
Overrides

mergePriorAsset(Asset value)

public TemporalAsset.Builder mergePriorAsset(Asset value)

Prior copy of the asset. Populated if prior_asset_state is PRESENT. Currently this is only set for responses in Real-Time Feed.

.google.cloud.asset.v1.Asset prior_asset = 5;

Parameter
NameDescription
valueAsset
Returns
TypeDescription
TemporalAsset.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TemporalAsset.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TemporalAsset.Builder
Overrides

mergeWindow(TimeWindow value)

public TemporalAsset.Builder mergeWindow(TimeWindow value)

The time window when the asset data and state was observed.

.google.cloud.asset.v1.TimeWindow window = 1;

Parameter
NameDescription
valueTimeWindow
Returns
TypeDescription
TemporalAsset.Builder

setAsset(Asset value)

public TemporalAsset.Builder setAsset(Asset value)

An asset in Google Cloud.

.google.cloud.asset.v1.Asset asset = 3;

Parameter
NameDescription
valueAsset
Returns
TypeDescription
TemporalAsset.Builder

setAsset(Asset.Builder builderForValue)

public TemporalAsset.Builder setAsset(Asset.Builder builderForValue)

An asset in Google Cloud.

.google.cloud.asset.v1.Asset asset = 3;

Parameter
NameDescription
builderForValueAsset.Builder
Returns
TypeDescription
TemporalAsset.Builder

setDeleted(boolean value)

public TemporalAsset.Builder setDeleted(boolean value)

Whether the asset has been deleted or not.

bool deleted = 2;

Parameter
NameDescription
valueboolean

The deleted to set.

Returns
TypeDescription
TemporalAsset.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public TemporalAsset.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TemporalAsset.Builder
Overrides

setPriorAsset(Asset value)

public TemporalAsset.Builder setPriorAsset(Asset value)

Prior copy of the asset. Populated if prior_asset_state is PRESENT. Currently this is only set for responses in Real-Time Feed.

.google.cloud.asset.v1.Asset prior_asset = 5;

Parameter
NameDescription
valueAsset
Returns
TypeDescription
TemporalAsset.Builder

setPriorAsset(Asset.Builder builderForValue)

public TemporalAsset.Builder setPriorAsset(Asset.Builder builderForValue)

Prior copy of the asset. Populated if prior_asset_state is PRESENT. Currently this is only set for responses in Real-Time Feed.

.google.cloud.asset.v1.Asset prior_asset = 5;

Parameter
NameDescription
builderForValueAsset.Builder
Returns
TypeDescription
TemporalAsset.Builder

setPriorAssetState(TemporalAsset.PriorAssetState value)

public TemporalAsset.Builder setPriorAssetState(TemporalAsset.PriorAssetState value)

State of prior_asset.

.google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4;

Parameter
NameDescription
valueTemporalAsset.PriorAssetState

The priorAssetState to set.

Returns
TypeDescription
TemporalAsset.Builder

This builder for chaining.

setPriorAssetStateValue(int value)

public TemporalAsset.Builder setPriorAssetStateValue(int value)

State of prior_asset.

.google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4;

Parameter
NameDescription
valueint

The enum numeric value on the wire for priorAssetState to set.

Returns
TypeDescription
TemporalAsset.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TemporalAsset.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TemporalAsset.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TemporalAsset.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TemporalAsset.Builder
Overrides

setWindow(TimeWindow value)

public TemporalAsset.Builder setWindow(TimeWindow value)

The time window when the asset data and state was observed.

.google.cloud.asset.v1.TimeWindow window = 1;

Parameter
NameDescription
valueTimeWindow
Returns
TypeDescription
TemporalAsset.Builder

setWindow(TimeWindow.Builder builderForValue)

public TemporalAsset.Builder setWindow(TimeWindow.Builder builderForValue)

The time window when the asset data and state was observed.

.google.cloud.asset.v1.TimeWindow window = 1;

Parameter
NameDescription
builderForValueTimeWindow.Builder
Returns
TypeDescription
TemporalAsset.Builder