Class CreateMeasurementProtocolSecretRequest.Builder (0.56.0)

public static final class CreateMeasurementProtocolSecretRequest.Builder extends GeneratedMessageV3.Builder<CreateMeasurementProtocolSecretRequest.Builder> implements CreateMeasurementProtocolSecretRequestOrBuilder

Request message for CreateMeasurementProtocolSecret RPC

Protobuf type google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateMeasurementProtocolSecretRequest build()
Returns
Type Description
CreateMeasurementProtocolSecretRequest

buildPartial()

public CreateMeasurementProtocolSecretRequest buildPartial()
Returns
Type Description
CreateMeasurementProtocolSecretRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMeasurementProtocolSecret()

public CreateMeasurementProtocolSecretRequest.Builder clearMeasurementProtocolSecret()

Required. The measurement protocol secret to create.

.google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateMeasurementProtocolSecretRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateMeasurementProtocolSecretRequest.Builder clearParent()

Required. The parent resource where this secret will be created. Format: properties/{property}/dataStreams/{dataStream}

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

Returns
Type Description
CreateMeasurementProtocolSecretRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateMeasurementProtocolSecretRequest getDefaultInstanceForType()
Returns
Type Description
CreateMeasurementProtocolSecretRequest

getDescriptorForType()

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

getMeasurementProtocolSecret()

public MeasurementProtocolSecret getMeasurementProtocolSecret()

Required. The measurement protocol secret to create.

.google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MeasurementProtocolSecret

The measurementProtocolSecret.

getMeasurementProtocolSecretBuilder()

public MeasurementProtocolSecret.Builder getMeasurementProtocolSecretBuilder()

Required. The measurement protocol secret to create.

.google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MeasurementProtocolSecret.Builder

getMeasurementProtocolSecretOrBuilder()

public MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretOrBuilder()

Required. The measurement protocol secret to create.

.google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MeasurementProtocolSecretOrBuilder

getParent()

public String getParent()

Required. The parent resource where this secret will be created. Format: properties/{property}/dataStreams/{dataStream}

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 where this secret will be created. Format: properties/{property}/dataStreams/{dataStream}

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

Returns
Type Description
ByteString

The bytes for parent.

hasMeasurementProtocolSecret()

public boolean hasMeasurementProtocolSecret()

Required. The measurement protocol secret to create.

.google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the measurementProtocolSecret field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateMeasurementProtocolSecretRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMeasurementProtocolSecret(MeasurementProtocolSecret value)

public CreateMeasurementProtocolSecretRequest.Builder mergeMeasurementProtocolSecret(MeasurementProtocolSecret value)

Required. The measurement protocol secret to create.

.google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value MeasurementProtocolSecret
Returns
Type Description
CreateMeasurementProtocolSecretRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMeasurementProtocolSecret(MeasurementProtocolSecret value)

public CreateMeasurementProtocolSecretRequest.Builder setMeasurementProtocolSecret(MeasurementProtocolSecret value)

Required. The measurement protocol secret to create.

.google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value MeasurementProtocolSecret
Returns
Type Description
CreateMeasurementProtocolSecretRequest.Builder

setMeasurementProtocolSecret(MeasurementProtocolSecret.Builder builderForValue)

public CreateMeasurementProtocolSecretRequest.Builder setMeasurementProtocolSecret(MeasurementProtocolSecret.Builder builderForValue)

Required. The measurement protocol secret to create.

.google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue MeasurementProtocolSecret.Builder
Returns
Type Description
CreateMeasurementProtocolSecretRequest.Builder

setParent(String value)

public CreateMeasurementProtocolSecretRequest.Builder setParent(String value)

Required. The parent resource where this secret will be created. Format: properties/{property}/dataStreams/{dataStream}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateMeasurementProtocolSecretRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateMeasurementProtocolSecretRequest.Builder setParentBytes(ByteString value)

Required. The parent resource where this secret will be created. Format: properties/{property}/dataStreams/{dataStream}

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
CreateMeasurementProtocolSecretRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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