public static final class Items.Builder extends GeneratedMessageV3.Builder<Items.Builder> implements ItemsOrBuilder
Metadata
Protobuf type google.cloud.compute.v1.Items
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 Items.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
Returns |
---|
Type | Description |
Items | |
buildPartial()
public Items buildPartial()
Returns |
---|
Type | Description |
Items | |
clear()
public Items.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Items.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearKey()
public Items.Builder clearKey()
Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
optional string key = 106079;
clearOneof(Descriptors.OneofDescriptor oneof)
public Items.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearValue()
public Items.Builder clearValue()
Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 262144 bytes (256 KiB).
optional string value = 111972721;
clone()
public Items.Builder clone()
Overrides
getDefaultInstanceForType()
public Items getDefaultInstanceForType()
Returns |
---|
Type | Description |
Items | |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getKey()
Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
optional string key = 106079;
Returns |
---|
Type | Description |
String | The key.
|
getKeyBytes()
public ByteString getKeyBytes()
Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
optional string key = 106079;
Returns |
---|
Type | Description |
ByteString | The bytes for key.
|
getValue()
Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 262144 bytes (256 KiB).
optional string value = 111972721;
Returns |
---|
Type | Description |
String | The value.
|
getValueBytes()
public ByteString getValueBytes()
Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 262144 bytes (256 KiB).
optional string value = 111972721;
Returns |
---|
Type | Description |
ByteString | The bytes for value.
|
hasKey()
Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
optional string key = 106079;
Returns |
---|
Type | Description |
boolean | Whether the key field is set.
|
hasValue()
public boolean hasValue()
Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 262144 bytes (256 KiB).
optional string value = 111972721;
Returns |
---|
Type | Description |
boolean | Whether the value field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Items other)
public Items.Builder mergeFrom(Items other)
Parameter |
---|
Name | Description |
other | Items
|
public Items.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Items.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Items.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Items.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setKey(String value)
public Items.Builder setKey(String value)
Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
optional string key = 106079;
Parameter |
---|
Name | Description |
value | String
The key to set.
|
setKeyBytes(ByteString value)
public Items.Builder setKeyBytes(ByteString value)
Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
optional string key = 106079;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for key to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Items.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Items.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
setValue(String value)
public Items.Builder setValue(String value)
Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 262144 bytes (256 KiB).
optional string value = 111972721;
Parameter |
---|
Name | Description |
value | String
The value to set.
|
setValueBytes(ByteString value)
public Items.Builder setValueBytes(ByteString value)
Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 262144 bytes (256 KiB).
optional string value = 111972721;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for value to set.
|