Class CreateServiceBindingRequest.Builder (0.8.0)

public static final class CreateServiceBindingRequest.Builder extends GeneratedMessageV3.Builder<CreateServiceBindingRequest.Builder> implements CreateServiceBindingRequestOrBuilder

Request used by the ServiceBinding method.

Protobuf type google.cloud.networkservices.v1.CreateServiceBindingRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateServiceBindingRequest build()
Returns
Type Description
CreateServiceBindingRequest

buildPartial()

public CreateServiceBindingRequest buildPartial()
Returns
Type Description
CreateServiceBindingRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateServiceBindingRequest.Builder clearParent()

Required. The parent resource of the ServiceBinding. Must be in the format projects/*/locations/global.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateServiceBindingRequest.Builder

This builder for chaining.

clearServiceBinding()

public CreateServiceBindingRequest.Builder clearServiceBinding()

Required. ServiceBinding resource to be created.

.google.cloud.networkservices.v1.ServiceBinding service_binding = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateServiceBindingRequest.Builder

clearServiceBindingId()

public CreateServiceBindingRequest.Builder clearServiceBindingId()

Required. Short name of the ServiceBinding resource to be created.

string service_binding_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateServiceBindingRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateServiceBindingRequest getDefaultInstanceForType()
Returns
Type Description
CreateServiceBindingRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent resource of the ServiceBinding. Must be in the format projects/*/locations/global.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource of the ServiceBinding. Must be in the format projects/*/locations/global.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getServiceBinding()

public ServiceBinding getServiceBinding()

Required. ServiceBinding resource to be created.

.google.cloud.networkservices.v1.ServiceBinding service_binding = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ServiceBinding

The serviceBinding.

getServiceBindingBuilder()

public ServiceBinding.Builder getServiceBindingBuilder()

Required. ServiceBinding resource to be created.

.google.cloud.networkservices.v1.ServiceBinding service_binding = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ServiceBinding.Builder

getServiceBindingId()

public String getServiceBindingId()

Required. Short name of the ServiceBinding resource to be created.

string service_binding_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The serviceBindingId.

getServiceBindingIdBytes()

public ByteString getServiceBindingIdBytes()

Required. Short name of the ServiceBinding resource to be created.

string service_binding_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for serviceBindingId.

getServiceBindingOrBuilder()

public ServiceBindingOrBuilder getServiceBindingOrBuilder()

Required. ServiceBinding resource to be created.

.google.cloud.networkservices.v1.ServiceBinding service_binding = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ServiceBindingOrBuilder

hasServiceBinding()

public boolean hasServiceBinding()

Required. ServiceBinding resource to be created.

.google.cloud.networkservices.v1.ServiceBinding service_binding = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the serviceBinding field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateServiceBindingRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeServiceBinding(ServiceBinding value)

public CreateServiceBindingRequest.Builder mergeServiceBinding(ServiceBinding value)

Required. ServiceBinding resource to be created.

.google.cloud.networkservices.v1.ServiceBinding service_binding = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ServiceBinding
Returns
Type Description
CreateServiceBindingRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateServiceBindingRequest.Builder setParent(String value)

Required. The parent resource of the ServiceBinding. Must be in the format projects/*/locations/global.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateServiceBindingRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateServiceBindingRequest.Builder setParentBytes(ByteString value)

Required. The parent resource of the ServiceBinding. Must be in the format projects/*/locations/global.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateServiceBindingRequest.Builder

This builder for chaining.

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

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

setServiceBinding(ServiceBinding value)

public CreateServiceBindingRequest.Builder setServiceBinding(ServiceBinding value)

Required. ServiceBinding resource to be created.

.google.cloud.networkservices.v1.ServiceBinding service_binding = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ServiceBinding
Returns
Type Description
CreateServiceBindingRequest.Builder

setServiceBinding(ServiceBinding.Builder builderForValue)

public CreateServiceBindingRequest.Builder setServiceBinding(ServiceBinding.Builder builderForValue)

Required. ServiceBinding resource to be created.

.google.cloud.networkservices.v1.ServiceBinding service_binding = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ServiceBinding.Builder
Returns
Type Description
CreateServiceBindingRequest.Builder

setServiceBindingId(String value)

public CreateServiceBindingRequest.Builder setServiceBindingId(String value)

Required. Short name of the ServiceBinding resource to be created.

string service_binding_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The serviceBindingId to set.

Returns
Type Description
CreateServiceBindingRequest.Builder

This builder for chaining.

setServiceBindingIdBytes(ByteString value)

public CreateServiceBindingRequest.Builder setServiceBindingIdBytes(ByteString value)

Required. Short name of the ServiceBinding resource to be created.

string service_binding_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for serviceBindingId to set.

Returns
Type Description
CreateServiceBindingRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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