Class EnableServiceRequest.Builder (2.1.7)

public static final class EnableServiceRequest.Builder extends GeneratedMessageV3.Builder<EnableServiceRequest.Builder> implements EnableServiceRequestOrBuilder

Request message for EnableService method.

Protobuf type google.api.servicemanagement.v1.EnableServiceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EnableServiceRequest build()
Returns
TypeDescription
EnableServiceRequest

buildPartial()

public EnableServiceRequest buildPartial()
Returns
TypeDescription
EnableServiceRequest

clear()

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

clearConsumerId()

public EnableServiceRequest.Builder clearConsumerId()

Required. The identity of consumer resource which service enablement will be applied to. The Google Service Management implementation accepts the following forms:

  • "project:<project_id>" Note: this is made compatible with google.api.servicecontrol.v1.Operation.consumer_id.

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

Returns
TypeDescription
EnableServiceRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServiceName()

public EnableServiceRequest.Builder clearServiceName()

Required. Name of the service to enable. Specifying an unknown service name will cause the request to fail.

string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
EnableServiceRequest.Builder

This builder for chaining.

clone()

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

getConsumerId()

public String getConsumerId()

Required. The identity of consumer resource which service enablement will be applied to. The Google Service Management implementation accepts the following forms:

  • "project:<project_id>" Note: this is made compatible with google.api.servicecontrol.v1.Operation.consumer_id.

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

Returns
TypeDescription
String

The consumerId.

getConsumerIdBytes()

public ByteString getConsumerIdBytes()

Required. The identity of consumer resource which service enablement will be applied to. The Google Service Management implementation accepts the following forms:

  • "project:<project_id>" Note: this is made compatible with google.api.servicecontrol.v1.Operation.consumer_id.

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

Returns
TypeDescription
ByteString

The bytes for consumerId.

getDefaultInstanceForType()

public EnableServiceRequest getDefaultInstanceForType()
Returns
TypeDescription
EnableServiceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getServiceName()

public String getServiceName()

Required. Name of the service to enable. Specifying an unknown service name will cause the request to fail.

string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The serviceName.

getServiceNameBytes()

public ByteString getServiceNameBytes()

Required. Name of the service to enable. Specifying an unknown service name will cause the request to fail.

string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for serviceName.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(EnableServiceRequest other)

public EnableServiceRequest.Builder mergeFrom(EnableServiceRequest other)
Parameter
NameDescription
otherEnableServiceRequest
Returns
TypeDescription
EnableServiceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConsumerId(String value)

public EnableServiceRequest.Builder setConsumerId(String value)

Required. The identity of consumer resource which service enablement will be applied to. The Google Service Management implementation accepts the following forms:

  • "project:<project_id>" Note: this is made compatible with google.api.servicecontrol.v1.Operation.consumer_id.

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

Parameter
NameDescription
valueString

The consumerId to set.

Returns
TypeDescription
EnableServiceRequest.Builder

This builder for chaining.

setConsumerIdBytes(ByteString value)

public EnableServiceRequest.Builder setConsumerIdBytes(ByteString value)

Required. The identity of consumer resource which service enablement will be applied to. The Google Service Management implementation accepts the following forms:

  • "project:<project_id>" Note: this is made compatible with google.api.servicecontrol.v1.Operation.consumer_id.

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

Parameter
NameDescription
valueByteString

The bytes for consumerId to set.

Returns
TypeDescription
EnableServiceRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setServiceName(String value)

public EnableServiceRequest.Builder setServiceName(String value)

Required. Name of the service to enable. Specifying an unknown service name will cause the request to fail.

string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The serviceName to set.

Returns
TypeDescription
EnableServiceRequest.Builder

This builder for chaining.

setServiceNameBytes(ByteString value)

public EnableServiceRequest.Builder setServiceNameBytes(ByteString value)

Required. Name of the service to enable. Specifying an unknown service name will cause the request to fail.

string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for serviceName to set.

Returns
TypeDescription
EnableServiceRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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