Class BackendServiceReference.Builder (1.58.0)

public static final class BackendServiceReference.Builder extends GeneratedMessageV3.Builder<BackendServiceReference.Builder> implements BackendServiceReferenceOrBuilder

Protobuf type google.cloud.compute.v1.BackendServiceReference

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BackendServiceReference.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BackendServiceReference.Builder
Overrides

build()

public BackendServiceReference build()
Returns
Type Description
BackendServiceReference

buildPartial()

public BackendServiceReference buildPartial()
Returns
Type Description
BackendServiceReference

clear()

public BackendServiceReference.Builder clear()
Returns
Type Description
BackendServiceReference.Builder
Overrides

clearBackendService()

public BackendServiceReference.Builder clearBackendService()

optional string backend_service = 306946058;

Returns
Type Description
BackendServiceReference.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BackendServiceReference.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BackendServiceReference.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BackendServiceReference.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BackendServiceReference.Builder
Overrides

clone()

public BackendServiceReference.Builder clone()
Returns
Type Description
BackendServiceReference.Builder
Overrides

getBackendService()

public String getBackendService()

optional string backend_service = 306946058;

Returns
Type Description
String

The backendService.

getBackendServiceBytes()

public ByteString getBackendServiceBytes()

optional string backend_service = 306946058;

Returns
Type Description
ByteString

The bytes for backendService.

getDefaultInstanceForType()

public BackendServiceReference getDefaultInstanceForType()
Returns
Type Description
BackendServiceReference

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

hasBackendService()

public boolean hasBackendService()

optional string backend_service = 306946058;

Returns
Type Description
boolean

Whether the backendService field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BackendServiceReference other)

public BackendServiceReference.Builder mergeFrom(BackendServiceReference other)
Parameter
Name Description
other BackendServiceReference
Returns
Type Description
BackendServiceReference.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BackendServiceReference.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceReference.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BackendServiceReference.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BackendServiceReference.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BackendServiceReference.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BackendServiceReference.Builder
Overrides

setBackendService(String value)

public BackendServiceReference.Builder setBackendService(String value)

optional string backend_service = 306946058;

Parameter
Name Description
value String

The backendService to set.

Returns
Type Description
BackendServiceReference.Builder

This builder for chaining.

setBackendServiceBytes(ByteString value)

public BackendServiceReference.Builder setBackendServiceBytes(ByteString value)

optional string backend_service = 306946058;

Parameter
Name Description
value ByteString

The bytes for backendService to set.

Returns
Type Description
BackendServiceReference.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BackendServiceReference.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BackendServiceReference.Builder
Overrides

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

public BackendServiceReference.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BackendServiceReference.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BackendServiceReference.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BackendServiceReference.Builder
Overrides