Package com.google.cloud.compute.v1
Class UsageExportLocation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
-
- com.google.cloud.compute.v1.UsageExportLocation.Builder
-
- All Implemented Interfaces:
UsageExportLocationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- UsageExportLocation
public static final class UsageExportLocation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder> implements UsageExportLocationOrBuilder
The location in Cloud Storage and naming method of the daily usage report. Contains bucket_name and report_name prefix.
Protobuf typegoogle.cloud.compute.v1.UsageExportLocation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UsageExportLocation.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)UsageExportLocationbuild()UsageExportLocationbuildPartial()UsageExportLocation.Builderclear()UsageExportLocation.BuilderclearBucketName()The name of an existing bucket in Cloud Storage where the usage report object is stored.UsageExportLocation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)UsageExportLocation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)UsageExportLocation.BuilderclearReportNamePrefix()An optional prefix for the name of the usage report object stored in bucketName.UsageExportLocation.Builderclone()StringgetBucketName()The name of an existing bucket in Cloud Storage where the usage report object is stored.com.google.protobuf.ByteStringgetBucketNameBytes()The name of an existing bucket in Cloud Storage where the usage report object is stored.UsageExportLocationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetReportNamePrefix()An optional prefix for the name of the usage report object stored in bucketName.com.google.protobuf.ByteStringgetReportNamePrefixBytes()An optional prefix for the name of the usage report object stored in bucketName.booleanhasBucketName()The name of an existing bucket in Cloud Storage where the usage report object is stored.booleanhasReportNamePrefix()An optional prefix for the name of the usage report object stored in bucketName.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()UsageExportLocation.BuildermergeFrom(UsageExportLocation other)UsageExportLocation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)UsageExportLocation.BuildermergeFrom(com.google.protobuf.Message other)UsageExportLocation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)UsageExportLocation.BuildersetBucketName(String value)The name of an existing bucket in Cloud Storage where the usage report object is stored.UsageExportLocation.BuildersetBucketNameBytes(com.google.protobuf.ByteString value)The name of an existing bucket in Cloud Storage where the usage report object is stored.UsageExportLocation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)UsageExportLocation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)UsageExportLocation.BuildersetReportNamePrefix(String value)An optional prefix for the name of the usage report object stored in bucketName.UsageExportLocation.BuildersetReportNamePrefixBytes(com.google.protobuf.ByteString value)An optional prefix for the name of the usage report object stored in bucketName.UsageExportLocation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
-
clear
public UsageExportLocation.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
-
getDefaultInstanceForType
public UsageExportLocation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public UsageExportLocation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public UsageExportLocation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public UsageExportLocation.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
-
setField
public UsageExportLocation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
-
clearField
public UsageExportLocation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
-
clearOneof
public UsageExportLocation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
-
setRepeatedField
public UsageExportLocation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
-
addRepeatedField
public UsageExportLocation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
-
mergeFrom
public UsageExportLocation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UsageExportLocation.Builder>
-
mergeFrom
public UsageExportLocation.Builder mergeFrom(UsageExportLocation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
-
mergeFrom
public UsageExportLocation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UsageExportLocation.Builder>- Throws:
IOException
-
hasBucketName
public boolean hasBucketName()
The name of an existing bucket in Cloud Storage where the usage report object is stored. The Google Service Account is granted write access to this bucket. This can either be the bucket name by itself, such as example-bucket, or the bucket name with gs:// or https://storage.googleapis.com/ in front of it, such as gs://example-bucket.
optional string bucket_name = 283610048;- Specified by:
hasBucketNamein interfaceUsageExportLocationOrBuilder- Returns:
- Whether the bucketName field is set.
-
getBucketName
public String getBucketName()
The name of an existing bucket in Cloud Storage where the usage report object is stored. The Google Service Account is granted write access to this bucket. This can either be the bucket name by itself, such as example-bucket, or the bucket name with gs:// or https://storage.googleapis.com/ in front of it, such as gs://example-bucket.
optional string bucket_name = 283610048;- Specified by:
getBucketNamein interfaceUsageExportLocationOrBuilder- Returns:
- The bucketName.
-
getBucketNameBytes
public com.google.protobuf.ByteString getBucketNameBytes()
The name of an existing bucket in Cloud Storage where the usage report object is stored. The Google Service Account is granted write access to this bucket. This can either be the bucket name by itself, such as example-bucket, or the bucket name with gs:// or https://storage.googleapis.com/ in front of it, such as gs://example-bucket.
optional string bucket_name = 283610048;- Specified by:
getBucketNameBytesin interfaceUsageExportLocationOrBuilder- Returns:
- The bytes for bucketName.
-
setBucketName
public UsageExportLocation.Builder setBucketName(String value)
The name of an existing bucket in Cloud Storage where the usage report object is stored. The Google Service Account is granted write access to this bucket. This can either be the bucket name by itself, such as example-bucket, or the bucket name with gs:// or https://storage.googleapis.com/ in front of it, such as gs://example-bucket.
optional string bucket_name = 283610048;- Parameters:
value- The bucketName to set.- Returns:
- This builder for chaining.
-
clearBucketName
public UsageExportLocation.Builder clearBucketName()
The name of an existing bucket in Cloud Storage where the usage report object is stored. The Google Service Account is granted write access to this bucket. This can either be the bucket name by itself, such as example-bucket, or the bucket name with gs:// or https://storage.googleapis.com/ in front of it, such as gs://example-bucket.
optional string bucket_name = 283610048;- Returns:
- This builder for chaining.
-
setBucketNameBytes
public UsageExportLocation.Builder setBucketNameBytes(com.google.protobuf.ByteString value)
The name of an existing bucket in Cloud Storage where the usage report object is stored. The Google Service Account is granted write access to this bucket. This can either be the bucket name by itself, such as example-bucket, or the bucket name with gs:// or https://storage.googleapis.com/ in front of it, such as gs://example-bucket.
optional string bucket_name = 283610048;- Parameters:
value- The bytes for bucketName to set.- Returns:
- This builder for chaining.
-
hasReportNamePrefix
public boolean hasReportNamePrefix()
An optional prefix for the name of the usage report object stored in bucketName. If not supplied, defaults to usage_gce. The report is stored as a CSV file named report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the day of the usage according to Pacific Time. If you supply a prefix, it should conform to Cloud Storage object naming conventions.
optional string report_name_prefix = 320198715;- Specified by:
hasReportNamePrefixin interfaceUsageExportLocationOrBuilder- Returns:
- Whether the reportNamePrefix field is set.
-
getReportNamePrefix
public String getReportNamePrefix()
An optional prefix for the name of the usage report object stored in bucketName. If not supplied, defaults to usage_gce. The report is stored as a CSV file named report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the day of the usage according to Pacific Time. If you supply a prefix, it should conform to Cloud Storage object naming conventions.
optional string report_name_prefix = 320198715;- Specified by:
getReportNamePrefixin interfaceUsageExportLocationOrBuilder- Returns:
- The reportNamePrefix.
-
getReportNamePrefixBytes
public com.google.protobuf.ByteString getReportNamePrefixBytes()
An optional prefix for the name of the usage report object stored in bucketName. If not supplied, defaults to usage_gce. The report is stored as a CSV file named report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the day of the usage according to Pacific Time. If you supply a prefix, it should conform to Cloud Storage object naming conventions.
optional string report_name_prefix = 320198715;- Specified by:
getReportNamePrefixBytesin interfaceUsageExportLocationOrBuilder- Returns:
- The bytes for reportNamePrefix.
-
setReportNamePrefix
public UsageExportLocation.Builder setReportNamePrefix(String value)
An optional prefix for the name of the usage report object stored in bucketName. If not supplied, defaults to usage_gce. The report is stored as a CSV file named report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the day of the usage according to Pacific Time. If you supply a prefix, it should conform to Cloud Storage object naming conventions.
optional string report_name_prefix = 320198715;- Parameters:
value- The reportNamePrefix to set.- Returns:
- This builder for chaining.
-
clearReportNamePrefix
public UsageExportLocation.Builder clearReportNamePrefix()
An optional prefix for the name of the usage report object stored in bucketName. If not supplied, defaults to usage_gce. The report is stored as a CSV file named report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the day of the usage according to Pacific Time. If you supply a prefix, it should conform to Cloud Storage object naming conventions.
optional string report_name_prefix = 320198715;- Returns:
- This builder for chaining.
-
setReportNamePrefixBytes
public UsageExportLocation.Builder setReportNamePrefixBytes(com.google.protobuf.ByteString value)
An optional prefix for the name of the usage report object stored in bucketName. If not supplied, defaults to usage_gce. The report is stored as a CSV file named report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the day of the usage according to Pacific Time. If you supply a prefix, it should conform to Cloud Storage object naming conventions.
optional string report_name_prefix = 320198715;- Parameters:
value- The bytes for reportNamePrefix to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final UsageExportLocation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
-
mergeUnknownFields
public final UsageExportLocation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
-
-