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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
UsageExportLocation
build()
UsageExportLocation
buildPartial()
UsageExportLocation.Builder
clear()
UsageExportLocation.Builder
clearBucketName()
The name of an existing bucket in Cloud Storage where the usage report object is stored.UsageExportLocation.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
UsageExportLocation.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
UsageExportLocation.Builder
clearReportNamePrefix()
An optional prefix for the name of the usage report object stored in bucketName.UsageExportLocation.Builder
clone()
String
getBucketName()
The name of an existing bucket in Cloud Storage where the usage report object is stored.com.google.protobuf.ByteString
getBucketNameBytes()
The name of an existing bucket in Cloud Storage where the usage report object is stored.UsageExportLocation
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getReportNamePrefix()
An optional prefix for the name of the usage report object stored in bucketName.com.google.protobuf.ByteString
getReportNamePrefixBytes()
An optional prefix for the name of the usage report object stored in bucketName.boolean
hasBucketName()
The name of an existing bucket in Cloud Storage where the usage report object is stored.boolean
hasReportNamePrefix()
An optional prefix for the name of the usage report object stored in bucketName.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
UsageExportLocation.Builder
mergeFrom(UsageExportLocation other)
UsageExportLocation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
UsageExportLocation.Builder
mergeFrom(com.google.protobuf.Message other)
UsageExportLocation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
UsageExportLocation.Builder
setBucketName(String value)
The name of an existing bucket in Cloud Storage where the usage report object is stored.UsageExportLocation.Builder
setBucketNameBytes(com.google.protobuf.ByteString value)
The name of an existing bucket in Cloud Storage where the usage report object is stored.UsageExportLocation.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
UsageExportLocation.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
UsageExportLocation.Builder
setReportNamePrefix(String value)
An optional prefix for the name of the usage report object stored in bucketName.UsageExportLocation.Builder
setReportNamePrefixBytes(com.google.protobuf.ByteString value)
An optional prefix for the name of the usage report object stored in bucketName.UsageExportLocation.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
-
clear
public UsageExportLocation.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
-
getDefaultInstanceForType
public UsageExportLocation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public UsageExportLocation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public UsageExportLocation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public UsageExportLocation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
-
setField
public UsageExportLocation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
-
clearField
public UsageExportLocation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
-
clearOneof
public UsageExportLocation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
-
setRepeatedField
public UsageExportLocation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
-
addRepeatedField
public UsageExportLocation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
-
mergeFrom
public UsageExportLocation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<UsageExportLocation.Builder>
-
mergeFrom
public UsageExportLocation.Builder mergeFrom(UsageExportLocation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasBucketName
in 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:
getBucketName
in 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:
getBucketNameBytes
in 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:
hasReportNamePrefix
in 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:
getReportNamePrefix
in 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:
getReportNamePrefixBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
-
mergeUnknownFields
public final UsageExportLocation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
-
-