Class GuestAttributes.Builder (1.25.0)

public static final class GuestAttributes.Builder extends GeneratedMessageV3.Builder<GuestAttributes.Builder> implements GuestAttributesOrBuilder

A guest attributes entry.

Protobuf type google.cloud.compute.v1.GuestAttributes

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GuestAttributes.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GuestAttributes.Builder
Overrides

build()

public GuestAttributes build()
Returns
TypeDescription
GuestAttributes

buildPartial()

public GuestAttributes buildPartial()
Returns
TypeDescription
GuestAttributes

clear()

public GuestAttributes.Builder clear()
Returns
TypeDescription
GuestAttributes.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GuestAttributes.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GuestAttributes.Builder
Overrides

clearKind()

public GuestAttributes.Builder clearKind()

[Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry.

optional string kind = 3292052;

Returns
TypeDescription
GuestAttributes.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GuestAttributes.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GuestAttributes.Builder
Overrides

clearQueryPath()

public GuestAttributes.Builder clearQueryPath()

The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\').

optional string query_path = 368591164;

Returns
TypeDescription
GuestAttributes.Builder

This builder for chaining.

clearQueryValue()

public GuestAttributes.Builder clearQueryValue()

[Output Only] The value of the requested queried path.

optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;

Returns
TypeDescription
GuestAttributes.Builder
public GuestAttributes.Builder clearSelfLink()

[Output Only] Server-defined URL for this resource.

optional string self_link = 456214797;

Returns
TypeDescription
GuestAttributes.Builder

This builder for chaining.

clearVariableKey()

public GuestAttributes.Builder clearVariableKey()

The key to search for.

optional string variable_key = 164364828;

Returns
TypeDescription
GuestAttributes.Builder

This builder for chaining.

clearVariableValue()

public GuestAttributes.Builder clearVariableValue()

[Output Only] The value found for the requested key.

optional string variable_value = 124582382;

Returns
TypeDescription
GuestAttributes.Builder

This builder for chaining.

clone()

public GuestAttributes.Builder clone()
Returns
TypeDescription
GuestAttributes.Builder
Overrides

getDefaultInstanceForType()

public GuestAttributes getDefaultInstanceForType()
Returns
TypeDescription
GuestAttributes

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKind()

public String getKind()

[Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry.

optional string kind = 3292052;

Returns
TypeDescription
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry.

optional string kind = 3292052;

Returns
TypeDescription
ByteString

The bytes for kind.

getQueryPath()

public String getQueryPath()

The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\').

optional string query_path = 368591164;

Returns
TypeDescription
String

The queryPath.

getQueryPathBytes()

public ByteString getQueryPathBytes()

The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\').

optional string query_path = 368591164;

Returns
TypeDescription
ByteString

The bytes for queryPath.

getQueryValue()

public GuestAttributesValue getQueryValue()

[Output Only] The value of the requested queried path.

optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;

Returns
TypeDescription
GuestAttributesValue

The queryValue.

getQueryValueBuilder()

public GuestAttributesValue.Builder getQueryValueBuilder()

[Output Only] The value of the requested queried path.

optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;

Returns
TypeDescription
GuestAttributesValue.Builder

getQueryValueOrBuilder()

public GuestAttributesValueOrBuilder getQueryValueOrBuilder()

[Output Only] The value of the requested queried path.

optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;

Returns
TypeDescription
GuestAttributesValueOrBuilder
public String getSelfLink()

[Output Only] Server-defined URL for this resource.

optional string self_link = 456214797;

Returns
TypeDescription
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

[Output Only] Server-defined URL for this resource.

optional string self_link = 456214797;

Returns
TypeDescription
ByteString

The bytes for selfLink.

getVariableKey()

public String getVariableKey()

The key to search for.

optional string variable_key = 164364828;

Returns
TypeDescription
String

The variableKey.

getVariableKeyBytes()

public ByteString getVariableKeyBytes()

The key to search for.

optional string variable_key = 164364828;

Returns
TypeDescription
ByteString

The bytes for variableKey.

getVariableValue()

public String getVariableValue()

[Output Only] The value found for the requested key.

optional string variable_value = 124582382;

Returns
TypeDescription
String

The variableValue.

getVariableValueBytes()

public ByteString getVariableValueBytes()

[Output Only] The value found for the requested key.

optional string variable_value = 124582382;

Returns
TypeDescription
ByteString

The bytes for variableValue.

hasKind()

public boolean hasKind()

[Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry.

optional string kind = 3292052;

Returns
TypeDescription
boolean

Whether the kind field is set.

hasQueryPath()

public boolean hasQueryPath()

The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\').

optional string query_path = 368591164;

Returns
TypeDescription
boolean

Whether the queryPath field is set.

hasQueryValue()

public boolean hasQueryValue()

[Output Only] The value of the requested queried path.

optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;

Returns
TypeDescription
boolean

Whether the queryValue field is set.

public boolean hasSelfLink()

[Output Only] Server-defined URL for this resource.

optional string self_link = 456214797;

Returns
TypeDescription
boolean

Whether the selfLink field is set.

hasVariableKey()

public boolean hasVariableKey()

The key to search for.

optional string variable_key = 164364828;

Returns
TypeDescription
boolean

Whether the variableKey field is set.

hasVariableValue()

public boolean hasVariableValue()

[Output Only] The value found for the requested key.

optional string variable_value = 124582382;

Returns
TypeDescription
boolean

Whether the variableValue field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GuestAttributes other)

public GuestAttributes.Builder mergeFrom(GuestAttributes other)
Parameter
NameDescription
otherGuestAttributes
Returns
TypeDescription
GuestAttributes.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GuestAttributes.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GuestAttributes.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GuestAttributes.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GuestAttributes.Builder
Overrides

mergeQueryValue(GuestAttributesValue value)

public GuestAttributes.Builder mergeQueryValue(GuestAttributesValue value)

[Output Only] The value of the requested queried path.

optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;

Parameter
NameDescription
valueGuestAttributesValue
Returns
TypeDescription
GuestAttributes.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GuestAttributes.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GuestAttributes.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GuestAttributes.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GuestAttributes.Builder
Overrides

setKind(String value)

public GuestAttributes.Builder setKind(String value)

[Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry.

optional string kind = 3292052;

Parameter
NameDescription
valueString

The kind to set.

Returns
TypeDescription
GuestAttributes.Builder

This builder for chaining.

setKindBytes(ByteString value)

public GuestAttributes.Builder setKindBytes(ByteString value)

[Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry.

optional string kind = 3292052;

Parameter
NameDescription
valueByteString

The bytes for kind to set.

Returns
TypeDescription
GuestAttributes.Builder

This builder for chaining.

setQueryPath(String value)

public GuestAttributes.Builder setQueryPath(String value)

The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\').

optional string query_path = 368591164;

Parameter
NameDescription
valueString

The queryPath to set.

Returns
TypeDescription
GuestAttributes.Builder

This builder for chaining.

setQueryPathBytes(ByteString value)

public GuestAttributes.Builder setQueryPathBytes(ByteString value)

The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\').

optional string query_path = 368591164;

Parameter
NameDescription
valueByteString

The bytes for queryPath to set.

Returns
TypeDescription
GuestAttributes.Builder

This builder for chaining.

setQueryValue(GuestAttributesValue value)

public GuestAttributes.Builder setQueryValue(GuestAttributesValue value)

[Output Only] The value of the requested queried path.

optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;

Parameter
NameDescription
valueGuestAttributesValue
Returns
TypeDescription
GuestAttributes.Builder

setQueryValue(GuestAttributesValue.Builder builderForValue)

public GuestAttributes.Builder setQueryValue(GuestAttributesValue.Builder builderForValue)

[Output Only] The value of the requested queried path.

optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;

Parameter
NameDescription
builderForValueGuestAttributesValue.Builder
Returns
TypeDescription
GuestAttributes.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GuestAttributes.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GuestAttributes.Builder
Overrides
public GuestAttributes.Builder setSelfLink(String value)

[Output Only] Server-defined URL for this resource.

optional string self_link = 456214797;

Parameter
NameDescription
valueString

The selfLink to set.

Returns
TypeDescription
GuestAttributes.Builder

This builder for chaining.

setSelfLinkBytes(ByteString value)

public GuestAttributes.Builder setSelfLinkBytes(ByteString value)

[Output Only] Server-defined URL for this resource.

optional string self_link = 456214797;

Parameter
NameDescription
valueByteString

The bytes for selfLink to set.

Returns
TypeDescription
GuestAttributes.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final GuestAttributes.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GuestAttributes.Builder
Overrides

setVariableKey(String value)

public GuestAttributes.Builder setVariableKey(String value)

The key to search for.

optional string variable_key = 164364828;

Parameter
NameDescription
valueString

The variableKey to set.

Returns
TypeDescription
GuestAttributes.Builder

This builder for chaining.

setVariableKeyBytes(ByteString value)

public GuestAttributes.Builder setVariableKeyBytes(ByteString value)

The key to search for.

optional string variable_key = 164364828;

Parameter
NameDescription
valueByteString

The bytes for variableKey to set.

Returns
TypeDescription
GuestAttributes.Builder

This builder for chaining.

setVariableValue(String value)

public GuestAttributes.Builder setVariableValue(String value)

[Output Only] The value found for the requested key.

optional string variable_value = 124582382;

Parameter
NameDescription
valueString

The variableValue to set.

Returns
TypeDescription
GuestAttributes.Builder

This builder for chaining.

setVariableValueBytes(ByteString value)

public GuestAttributes.Builder setVariableValueBytes(ByteString value)

[Output Only] The value found for the requested key.

optional string variable_value = 124582382;

Parameter
NameDescription
valueByteString

The bytes for variableValue to set.

Returns
TypeDescription
GuestAttributes.Builder

This builder for chaining.