public final class BackendBucket extends GeneratedMessageV3 implements BackendBucketOrBuilder
Represents a Cloud Storage Bucket resource. This Cloud Storage bucket resource is referenced by a URL map of a load balancer. For more information, read Backend Buckets.
Protobuf type google.cloud.compute.v1.BackendBucket
Fields
BUCKET_NAME_FIELD_NUMBER
public static final int BUCKET_NAME_FIELD_NUMBER
Field Value
CDN_POLICY_FIELD_NUMBER
public static final int CDN_POLICY_FIELD_NUMBER
Field Value
CREATION_TIMESTAMP_FIELD_NUMBER
public static final int CREATION_TIMESTAMP_FIELD_NUMBER
Field Value
public static final int CUSTOM_RESPONSE_HEADERS_FIELD_NUMBER
Field Value
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value
ENABLE_CDN_FIELD_NUMBER
public static final int ENABLE_CDN_FIELD_NUMBER
Field Value
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
Field Value
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
SELF_LINK_FIELD_NUMBER
public static final int SELF_LINK_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getBucketName()
public String getBucketName()
Cloud Storage bucket name.
optional string bucket_name = 283610048;
Returns
Type | Description |
String | The bucketName.
|
getBucketNameBytes()
public ByteString getBucketNameBytes()
Cloud Storage bucket name.
optional string bucket_name = 283610048;
Returns
Type | Description |
ByteString | The bytes for bucketName.
|
getCdnPolicy()
public BackendBucketCdnPolicy getCdnPolicy()
Cloud CDN configuration for this BackendBucket.
optional .google.cloud.compute.v1.BackendBucketCdnPolicy cdn_policy = 213976452;
Returns
getCdnPolicyOrBuilder()
public BackendBucketCdnPolicyOrBuilder getCdnPolicyOrBuilder()
Cloud CDN configuration for this BackendBucket.
optional .google.cloud.compute.v1.BackendBucketCdnPolicy cdn_policy = 213976452;
Returns
getCreationTimestamp()
public String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Returns
Type | Description |
String | The creationTimestamp.
|
getCreationTimestampBytes()
public ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Returns
Type | Description |
ByteString | The bytes for creationTimestamp.
|
public String getCustomResponseHeaders(int index)
Headers that the HTTP/S load balancer should add to proxied responses.
repeated string custom_response_headers = 387539094;
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The customResponseHeaders at the given index.
|
public ByteString getCustomResponseHeadersBytes(int index)
Headers that the HTTP/S load balancer should add to proxied responses.
repeated string custom_response_headers = 387539094;
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the customResponseHeaders at the given index.
|
public int getCustomResponseHeadersCount()
Headers that the HTTP/S load balancer should add to proxied responses.
repeated string custom_response_headers = 387539094;
Returns
Type | Description |
int | The count of customResponseHeaders.
|
public ProtocolStringList getCustomResponseHeadersList()
Headers that the HTTP/S load balancer should add to proxied responses.
repeated string custom_response_headers = 387539094;
Returns
getDefaultInstance()
public static BackendBucket getDefaultInstance()
Returns
getDefaultInstanceForType()
public BackendBucket getDefaultInstanceForType()
Returns
getDescription()
public String getDescription()
An optional textual description of the resource; provided by the client when the resource is created.
optional string description = 422937596;
Returns
Type | Description |
String | The description.
|
getDescriptionBytes()
public ByteString getDescriptionBytes()
An optional textual description of the resource; provided by the client when the resource is created.
optional string description = 422937596;
Returns
Type | Description |
ByteString | The bytes for description.
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getEnableCdn()
public boolean getEnableCdn()
If true, enable Cloud CDN for this BackendBucket.
optional bool enable_cdn = 282942321;
Returns
Type | Description |
boolean | The enableCdn.
|
getId()
[Output Only] Unique identifier for the resource; defined by the server.
optional uint64 id = 3355;
Returns
Type | Description |
long | The id.
|
getKind()
Type of the resource.
optional string kind = 3292052;
Returns
Type | Description |
String | The kind.
|
getKindBytes()
public ByteString getKindBytes()
Type of the resource.
optional string kind = 3292052;
Returns
getName()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;
Returns
getParserForType()
public Parser<BackendBucket> getParserForType()
Returns
Overrides
getSelfLink()
public String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Returns
Type | Description |
String | The selfLink.
|
getSelfLinkBytes()
public ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasBucketName()
public boolean hasBucketName()
Cloud Storage bucket name.
optional string bucket_name = 283610048;
Returns
Type | Description |
boolean | Whether the bucketName field is set.
|
hasCdnPolicy()
public boolean hasCdnPolicy()
Cloud CDN configuration for this BackendBucket.
optional .google.cloud.compute.v1.BackendBucketCdnPolicy cdn_policy = 213976452;
Returns
Type | Description |
boolean | Whether the cdnPolicy field is set.
|
hasCreationTimestamp()
public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Returns
Type | Description |
boolean | Whether the creationTimestamp field is set.
|
hasDescription()
public boolean hasDescription()
An optional textual description of the resource; provided by the client when the resource is created.
optional string description = 422937596;
Returns
Type | Description |
boolean | Whether the description field is set.
|
hasEnableCdn()
public boolean hasEnableCdn()
If true, enable Cloud CDN for this BackendBucket.
optional bool enable_cdn = 282942321;
Returns
Type | Description |
boolean | Whether the enableCdn field is set.
|
hasId()
[Output Only] Unique identifier for the resource; defined by the server.
optional uint64 id = 3355;
Returns
Type | Description |
boolean | Whether the id field is set.
|
hasKind()
Type of the resource.
optional string kind = 3292052;
Returns
Type | Description |
boolean | Whether the kind field is set.
|
hasName()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;
Returns
Type | Description |
boolean | Whether the name field is set.
|
hasSelfLink()
public boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Returns
Type | Description |
boolean | Whether the selfLink field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static BackendBucket.Builder newBuilder()
Returns
newBuilder(BackendBucket prototype)
public static BackendBucket.Builder newBuilder(BackendBucket prototype)
Parameter
Returns
newBuilderForType()
public BackendBucket.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected BackendBucket.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static BackendBucket parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static BackendBucket parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static BackendBucket parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static BackendBucket parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static BackendBucket parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BackendBucket parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BackendBucket parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static BackendBucket parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BackendBucket parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static BackendBucket parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static BackendBucket parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static BackendBucket parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<BackendBucket> parser()
Returns
toBuilder()
public BackendBucket.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions