Class Usage.Builder (0.7.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 0.7.0keyboard_arrow_down
public static final class Usage . Builder extends GeneratedMessageV3 . Builder<Usage . Builder > implements UsageOrBuilder
Message describing total counts of users who accessed a VM.
Protobuf type google.cloud.licensemanager.v1.Usage
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Usage . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
Returns
Type
Description
Usage
buildPartial()
public Usage buildPartial ()
Returns
Type
Description
Usage
clear()
public Usage . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Usage . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearLimaInstance()
public Usage . Builder clearLimaInstance ()
LiMa Instance resource name, i.e.
projects/{project}/locations/{location}/instances/{instance}
string lima_instance = 1 [(.google.api.resource_reference) = { ... }
Returns
Type
Description
Usage.Builder
This builder for chaining.
clearOneof(Descriptors.OneofDescriptor oneof)
public Usage . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearUsers()
public Usage . Builder clearUsers ()
Number of unique users accessing the VM.
int32 users = 2;
Returns
Type
Description
Usage.Builder
This builder for chaining.
clone()
public Usage . Builder clone ()
Overrides
getDefaultInstanceForType()
public Usage getDefaultInstanceForType ()
Returns
Type
Description
Usage
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getLimaInstance()
public String getLimaInstance ()
LiMa Instance resource name, i.e.
projects/{project}/locations/{location}/instances/{instance}
string lima_instance = 1 [(.google.api.resource_reference) = { ... }
Returns
Type
Description
String
The limaInstance.
getLimaInstanceBytes()
public ByteString getLimaInstanceBytes ()
LiMa Instance resource name, i.e.
projects/{project}/locations/{location}/instances/{instance}
string lima_instance = 1 [(.google.api.resource_reference) = { ... }
Returns
Type
Description
ByteString
The bytes for limaInstance.
getUsers()
Number of unique users accessing the VM.
int32 users = 2;
Returns
Type
Description
int
The users.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(Usage other)
public Usage . Builder mergeFrom ( Usage other )
Parameter
Name
Description
other
Usage
public Usage . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public Usage . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Usage . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Usage . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setLimaInstance(String value)
public Usage . Builder setLimaInstance ( String value )
LiMa Instance resource name, i.e.
projects/{project}/locations/{location}/instances/{instance}
string lima_instance = 1 [(.google.api.resource_reference) = { ... }
Parameter
Name
Description
value
String
The limaInstance to set.
Returns
Type
Description
Usage.Builder
This builder for chaining.
setLimaInstanceBytes(ByteString value)
public Usage . Builder setLimaInstanceBytes ( ByteString value )
LiMa Instance resource name, i.e.
projects/{project}/locations/{location}/instances/{instance}
string lima_instance = 1 [(.google.api.resource_reference) = { ... }
Parameter
Name
Description
value
ByteString
The bytes for limaInstance to set.
Returns
Type
Description
Usage.Builder
This builder for chaining.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Usage . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Usage . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setUsers(int value)
public Usage . Builder setUsers ( int value )
Number of unique users accessing the VM.
int32 users = 2;
Parameter
Name
Description
value
int
The users to set.
Returns
Type
Description
Usage.Builder
This builder for chaining.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-02 UTC."],[],[],null,[]]