Class CreateMeasurementProtocolSecretRequest.Builder (0.17.0)

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

Request message for CreateMeasurementProtocolSecret RPC

Protobuf type google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateMeasurementProtocolSecretRequest build()
Returns
TypeDescription
CreateMeasurementProtocolSecretRequest

buildPartial()

public CreateMeasurementProtocolSecretRequest buildPartial()
Returns
TypeDescription
CreateMeasurementProtocolSecretRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMeasurementProtocolSecret()

public CreateMeasurementProtocolSecretRequest.Builder clearMeasurementProtocolSecret()

Required. The measurement protocol secret to create.

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

Returns
TypeDescription
CreateMeasurementProtocolSecretRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateMeasurementProtocolSecretRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateMeasurementProtocolSecretRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateMeasurementProtocolSecretRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateMeasurementProtocolSecretRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMeasurementProtocolSecret()

public MeasurementProtocolSecret getMeasurementProtocolSecret()

Required. The measurement protocol secret to create.

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

Returns
TypeDescription
MeasurementProtocolSecret

The measurementProtocolSecret.

getMeasurementProtocolSecretBuilder()

public MeasurementProtocolSecret.Builder getMeasurementProtocolSecretBuilder()

Required. The measurement protocol secret to create.

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

Returns
TypeDescription
MeasurementProtocolSecret.Builder

getMeasurementProtocolSecretOrBuilder()

public MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretOrBuilder()

Required. The measurement protocol secret to create.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

hasMeasurementProtocolSecret()

public boolean hasMeasurementProtocolSecret()

Required. The measurement protocol secret to create.

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

Returns
TypeDescription
boolean

Whether the measurementProtocolSecret field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateMeasurementProtocolSecretRequest other)

public CreateMeasurementProtocolSecretRequest.Builder mergeFrom(CreateMeasurementProtocolSecretRequest other)
Parameter
NameDescription
otherCreateMeasurementProtocolSecretRequest
Returns
TypeDescription
CreateMeasurementProtocolSecretRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMeasurementProtocolSecret(MeasurementProtocolSecret value)

public CreateMeasurementProtocolSecretRequest.Builder mergeMeasurementProtocolSecret(MeasurementProtocolSecret value)

Required. The measurement protocol secret to create.

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

Parameter
NameDescription
valueMeasurementProtocolSecret
Returns
TypeDescription
CreateMeasurementProtocolSecretRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMeasurementProtocolSecret(MeasurementProtocolSecret value)

public CreateMeasurementProtocolSecretRequest.Builder setMeasurementProtocolSecret(MeasurementProtocolSecret value)

Required. The measurement protocol secret to create.

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

Parameter
NameDescription
valueMeasurementProtocolSecret
Returns
TypeDescription
CreateMeasurementProtocolSecretRequest.Builder

setMeasurementProtocolSecret(MeasurementProtocolSecret.Builder builderForValue)

public CreateMeasurementProtocolSecretRequest.Builder setMeasurementProtocolSecret(MeasurementProtocolSecret.Builder builderForValue)

Required. The measurement protocol secret to create.

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

Parameter
NameDescription
builderForValueMeasurementProtocolSecret.Builder
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateMeasurementProtocolSecretRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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