Here are the examples of the csharp api Google.Protobuf.CodedOutputStream.ComputeStringSize(string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
329 Examples
19
Source : Http.cs
with Apache License 2.0
from ac87
with Apache License 2.0
from ac87
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Selector.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Selector);
}
if (patternCase_ == PatternOneofCase.Get) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Get);
}
if (patternCase_ == PatternOneofCase.Put) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Put);
}
if (patternCase_ == PatternOneofCase.Post) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Post);
}
if (patternCase_ == PatternOneofCase.Delete) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Delete);
}
if (patternCase_ == PatternOneofCase.Patch) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Patch);
}
if (patternCase_ == PatternOneofCase.Custom) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Custom);
}
if (Body.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Body);
}
size += additionalBindings_.CalculateSize(_repeated_additionalBindings_codec);
return size;
}
19
Source : Http.cs
with Apache License 2.0
from ac87
with Apache License 2.0
from ac87
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Kind.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Kind);
}
if (Path.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Path);
}
return size;
}
19
Source : Status.cs
with Apache License 2.0
from ac87
with Apache License 2.0
from ac87
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Code != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Code);
}
if (Message.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
}
size += details_.CalculateSize(_repeated_details_codec);
return size;
}
19
Source : Hello.cs
with MIT License
from avinassh
with MIT License
from avinassh
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Name.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
}
return size;
}
19
Source : Hello.cs
with MIT License
from avinassh
with MIT License
from avinassh
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Result.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Result);
}
return size;
}
19
Source : Helloworld.cs
with MIT License
from bjorkstromm
with MIT License
from bjorkstromm
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Message.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
}
return size;
}
19
Source : AccountBudgetService.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : BillingSetupService.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (CustomerId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId);
}
if (operation_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Operation);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : BillingSetupService.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (operationCase_ == OperationOneofCase.Create) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create);
}
if (operationCase_ == OperationOneofCase.Remove) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : CustomerUserAccessService.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (updateMask_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask);
}
if (operationCase_ == OperationOneofCase.Update) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update);
}
if (operationCase_ == OperationOneofCase.Remove) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : InvoiceService.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (CustomerId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId);
}
if (BillingSetup.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(BillingSetup);
}
if (IssueYear.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(IssueYear);
}
if (IssueMonth != global::Google.Ads.GoogleAds.V7.Enums.MonthOfYearEnum.Types.MonthOfYear.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) IssueMonth);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : FeedItemSetLinkService.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (CustomerId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId);
}
size += operations_.CalculateSize(_repeated_operations_codec);
if (PartialFailure != false) {
size += 1 + 1;
}
if (ValidateOnly != false) {
size += 1 + 1;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : GoogleAdsFieldService.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (Query.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Query);
}
if (PageToken.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken);
}
if (PageSize != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : GoogleAdsFieldService.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
size += results_.CalculateSize(_repeated_results_codec);
if (NextPageToken.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken);
}
if (TotalResultsCount != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalResultsCount);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : PaymentsAccountService.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (CustomerId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : UserDataService.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (CustomerId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId);
}
size += operations_.CalculateSize(_repeated_operations_codec);
if (metadataCase_ == MetadataOneofCase.CustomerMatchUserListMetadata) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CustomerMatchUserListMetadata);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : UserDataService.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (HasUploadDateTime) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(UploadDateTime);
}
if (HasReceivedOperationsCount) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ReceivedOperationsCount);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : AdAsset.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (HasText) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Text);
}
if (PinnedField != global::Google.Ads.GoogleAds.V7.Enums.ServedreplacedetFieldTypeEnum.Types.ServedreplacedetFieldType.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PinnedField);
}
if (replacedetPerformanceLabel != global::Google.Ads.GoogleAds.V7.Enums.replacedetPerformanceLabelEnum.Types.replacedetPerformanceLabel.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) replacedetPerformanceLabel);
}
if (policySummaryInfo_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(PolicySummaryInfo);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : AdAsset.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (Hasreplacedet) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(replacedet);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : AdGroupAd.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (Status != global::Google.Ads.GoogleAds.V7.Enums.AdGroupAdStatusEnum.Types.AdGroupAdStatus.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
}
if (HasAdGroup) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroup);
}
if (ad_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Ad);
}
if (policySummary_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(PolicySummary);
}
if (AdStrength != global::Google.Ads.GoogleAds.V7.Enums.AdStrengthEnum.Types.AdStrength.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AdStrength);
}
size += labels_.CalculateSize(_repeated_labels_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : AdGroupAdAssetView.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (HasAdGroupAd) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroupAd);
}
if (Hasreplacedet) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(replacedet);
}
if (FieldType != global::Google.Ads.GoogleAds.V7.Enums.replacedetFieldTypeEnum.Types.replacedetFieldType.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FieldType);
}
if (HasEnabled) {
size += 1 + 1;
}
if (policySummary_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(PolicySummary);
}
if (PerformanceLabel != global::Google.Ads.GoogleAds.V7.Enums.replacedetPerformanceLabelEnum.Types.replacedetPerformanceLabel.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PerformanceLabel);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : AdGroupCriterionLabel.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (HasAdGroupCriterion) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroupCriterion);
}
if (HasLabel) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Label);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : AdGroupExtensionSetting.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (ExtensionType != global::Google.Ads.GoogleAds.V7.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ExtensionType);
}
if (HasAdGroup) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroup);
}
size += extensionFeedItems_.CalculateSize(_repeated_extensionFeedItems_codec);
if (Device != global::Google.Ads.GoogleAds.V7.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Device);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : AdGroupFeed.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (HasFeed) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Feed);
}
if (HasAdGroup) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroup);
}
size += placeholderTypes_.CalculateSize(_repeated_placeholderTypes_codec);
if (matchingFunction_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(MatchingFunction);
}
if (Status != global::Google.Ads.GoogleAds.V7.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : AdGroupLabel.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (HasAdGroup) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroup);
}
if (HasLabel) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Label);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : AdGroupSimulation.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (HasAdGroupId) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(AdGroupId);
}
if (Type != global::Google.Ads.GoogleAds.V7.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
}
if (ModificationMethod != global::Google.Ads.GoogleAds.V7.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ModificationMethod);
}
if (HreplacedtartDate) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDate);
}
if (HasEndDate) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(EndDate);
}
if (pointListCase_ == PointListOneofCase.CpcBidPointList) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CpcBidPointList);
}
if (pointListCase_ == PointListOneofCase.CpvBidPointList) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CpvBidPointList);
}
if (pointListCase_ == PointListOneofCase.TargetCpaPointList) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetCpaPointList);
}
if (pointListCase_ == PointListOneofCase.TargetRoasPointList) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetRoasPointList);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : AdParameter.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (HasAdGroupCriterion) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroupCriterion);
}
if (HasParameterIndex) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(ParameterIndex);
}
if (HasInsertionText) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(InsertionText);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : BiddingStrategySimulation.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (BiddingStrategyId != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(BiddingStrategyId);
}
if (Type != global::Google.Ads.GoogleAds.V7.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
}
if (ModificationMethod != global::Google.Ads.GoogleAds.V7.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ModificationMethod);
}
if (StartDate.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDate);
}
if (EndDate.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(EndDate);
}
if (pointListCase_ == PointListOneofCase.TargetCpaPointList) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetCpaPointList);
}
if (pointListCase_ == PointListOneofCase.TargetRoasPointList) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetRoasPointList);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : BillingSetup.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (HasId) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id);
}
if (Status != global::Google.Ads.GoogleAds.V7.Enums.BillingSetupStatusEnum.Types.BillingSetupStatus.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
}
if (HasPaymentsAccount) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(PaymentsAccount);
}
if (paymentsAccountInfo_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(PaymentsAccountInfo);
}
if (startTimeCase_ == StartTimeOneofCase.StartDateTime) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(StartDateTime);
}
if (startTimeCase_ == StartTimeOneofCase.StartTimeType) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StartTimeType);
}
if (endTimeCase_ == EndTimeOneofCase.EndDateTime) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(EndDateTime);
}
if (endTimeCase_ == EndTimeOneofCase.EndTimeType) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EndTimeType);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : BillingSetup.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (HasPaymentsAccountId) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(PaymentsAccountId);
}
if (HasPaymentsAccountName) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(PaymentsAccountName);
}
if (HasPaymentsProfileId) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(PaymentsProfileId);
}
if (HasPaymentsProfileName) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(PaymentsProfileName);
}
if (HreplacedecondaryPaymentsProfileId) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(SecondaryPaymentsProfileId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : CampaignAsset.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (HasCampaign) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Campaign);
}
if (Hasreplacedet) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(replacedet);
}
if (FieldType != global::Google.Ads.GoogleAds.V7.Enums.replacedetFieldTypeEnum.Types.replacedetFieldType.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FieldType);
}
if (Status != global::Google.Ads.GoogleAds.V7.Enums.replacedetLinkStatusEnum.Types.replacedetLinkStatus.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : CampaignBidModifier.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (HasCampaign) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Campaign);
}
if (HasCriterionId) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(CriterionId);
}
if (HasBidModifier) {
size += 1 + 8;
}
if (criterionCase_ == CriterionOneofCase.InteractionType) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(InteractionType);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : AdGroupBidModifier.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (HasAdGroup) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroup);
}
if (HasCriterionId) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(CriterionId);
}
if (HasBidModifier) {
size += 1 + 8;
}
if (HasBaseAdGroup) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(BaseAdGroup);
}
if (BidModifierSource != global::Google.Ads.GoogleAds.V7.Enums.BidModifierSourceEnum.Types.BidModifierSource.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BidModifierSource);
}
if (criterionCase_ == CriterionOneofCase.HotelDateSelectionType) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(HotelDateSelectionType);
}
if (criterionCase_ == CriterionOneofCase.HotelAdvanceBookingWindow) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(HotelAdvanceBookingWindow);
}
if (criterionCase_ == CriterionOneofCase.HotelLengthOfStay) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(HotelLengthOfStay);
}
if (criterionCase_ == CriterionOneofCase.HotelCheckInDay) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(HotelCheckInDay);
}
if (criterionCase_ == CriterionOneofCase.Device) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Device);
}
if (criterionCase_ == CriterionOneofCase.PreferredContent) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(PreferredContent);
}
if (criterionCase_ == CriterionOneofCase.HotelCheckInDateRange) {
size += 2 + pb::CodedOutputStream.ComputeMessageSize(HotelCheckInDateRange);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : AdGroupCriterionSimulation.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (HasAdGroupId) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(AdGroupId);
}
if (HasCriterionId) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(CriterionId);
}
if (Type != global::Google.Ads.GoogleAds.V7.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
}
if (ModificationMethod != global::Google.Ads.GoogleAds.V7.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ModificationMethod);
}
if (HreplacedtartDate) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDate);
}
if (HasEndDate) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(EndDate);
}
if (pointListCase_ == PointListOneofCase.CpcBidPointList) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CpcBidPointList);
}
if (pointListCase_ == PointListOneofCase.PercentCpcBidPointList) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(PercentCpcBidPointList);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : BatchJob.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (HasId) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id);
}
if (HasNextAddSequenceToken) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(NextAddSequenceToken);
}
if (metadata_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Metadata);
}
if (Status != global::Google.Ads.GoogleAds.V7.Enums.BatchJobStatusEnum.Types.BatchJobStatus.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
}
if (HasLongRunningOperation) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(LongRunningOperation);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : BatchJob.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (HasCreationDateTime) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(CreationDateTime);
}
if (HreplacedtartDateTime) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDateTime);
}
if (HasCompletionDateTime) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(CompletionDateTime);
}
if (HasEstimatedCompletionRatio) {
size += 1 + 8;
}
if (HasOperationCount) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(OperationCount);
}
if (HasExecutedOperationCount) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(ExecutedOperationCount);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : CallView.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (CallerRegionCode.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(CallerRegionCode);
}
if (CallerAreaCode.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(CallerAreaCode);
}
if (CallDurationSeconds != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(CallDurationSeconds);
}
if (StartCallDateTime.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(StartCallDateTime);
}
if (EndCallDateTime.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(EndCallDateTime);
}
if (CallTrackingDisplayLocation != global::Google.Ads.GoogleAds.V7.Enums.CallTrackingDisplayLocationEnum.Types.CallTrackingDisplayLocation.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CallTrackingDisplayLocation);
}
if (Type != global::Google.Ads.GoogleAds.V7.Enums.CallTypeEnum.Types.CallType.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
}
if (CallStatus != global::Google.Ads.GoogleAds.V7.Enums.GoogleVoiceCallStatusEnum.Types.GoogleVoiceCallStatus.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CallStatus);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : CampaignCriterionSimulation.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (HasCampaignId) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(CampaignId);
}
if (HasCriterionId) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(CriterionId);
}
if (Type != global::Google.Ads.GoogleAds.V7.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
}
if (ModificationMethod != global::Google.Ads.GoogleAds.V7.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ModificationMethod);
}
if (HreplacedtartDate) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDate);
}
if (HasEndDate) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(EndDate);
}
if (pointListCase_ == PointListOneofCase.BidModifierPointList) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(BidModifierPointList);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : CampaignDraft.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (HasDraftId) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(DraftId);
}
if (HasBaseCampaign) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(BaseCampaign);
}
if (HasName) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
}
if (HasDraftCampaign) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(DraftCampaign);
}
if (Status != global::Google.Ads.GoogleAds.V7.Enums.CampaignDraftStatusEnum.Types.CampaignDraftStatus.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
}
if (HasHasExperimentRunning) {
size += 1 + 1;
}
if (HasLongRunningOperation) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(LongRunningOperation);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : CampaignExtensionSetting.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (ExtensionType != global::Google.Ads.GoogleAds.V7.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ExtensionType);
}
if (HasCampaign) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Campaign);
}
size += extensionFeedItems_.CalculateSize(_repeated_extensionFeedItems_codec);
if (Device != global::Google.Ads.GoogleAds.V7.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Device);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : CampaignFeed.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (HasFeed) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Feed);
}
if (HasCampaign) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Campaign);
}
size += placeholderTypes_.CalculateSize(_repeated_placeholderTypes_codec);
if (matchingFunction_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(MatchingFunction);
}
if (Status != global::Google.Ads.GoogleAds.V7.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : CampaignLabel.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (HasCampaign) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Campaign);
}
if (HasLabel) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Label);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : CampaignSimulation.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (CampaignId != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(CampaignId);
}
if (Type != global::Google.Ads.GoogleAds.V7.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
}
if (ModificationMethod != global::Google.Ads.GoogleAds.V7.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ModificationMethod);
}
if (StartDate.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDate);
}
if (EndDate.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(EndDate);
}
if (pointListCase_ == PointListOneofCase.CpcBidPointList) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CpcBidPointList);
}
if (pointListCase_ == PointListOneofCase.TargetCpaPointList) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetCpaPointList);
}
if (pointListCase_ == PointListOneofCase.TargetRoasPointList) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetRoasPointList);
}
if (pointListCase_ == PointListOneofCase.TargetImpressionSharePointList) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetImpressionSharePointList);
}
if (pointListCase_ == PointListOneofCase.BudgetPointList) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(BudgetPointList);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : AdGroupAdLabel.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (HasAdGroupAd) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroupAd);
}
if (HasLabel) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Label);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : AdGroupAsset.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (AdGroup.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroup);
}
if (replacedet.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(replacedet);
}
if (FieldType != global::Google.Ads.GoogleAds.V7.Enums.replacedetFieldTypeEnum.Types.replacedetFieldType.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FieldType);
}
if (Status != global::Google.Ads.GoogleAds.V7.Enums.replacedetLinkStatusEnum.Types.replacedetLinkStatus.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : BiddingStrategy.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (HasId) {
size += 2 + pb::CodedOutputStream.ComputeInt64Size(Id);
}
if (HasName) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(Name);
}
if (Status != global::Google.Ads.GoogleAds.V7.Enums.BiddingStrategyStatusEnum.Types.BiddingStrategyStatus.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
}
if (Type != global::Google.Ads.GoogleAds.V7.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
}
if (HasEffectiveCurrencyCode) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(EffectiveCurrencyCode);
}
if (HasCampaignCount) {
size += 2 + pb::CodedOutputStream.ComputeInt64Size(CampaignCount);
}
if (HasNonRemovedCampaignCount) {
size += 2 + pb::CodedOutputStream.ComputeInt64Size(NonRemovedCampaignCount);
}
if (schemeCase_ == SchemeOneofCase.EnhancedCpc) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(EnhancedCpc);
}
if (schemeCase_ == SchemeOneofCase.MaximizeConversionValue) {
size += 2 + pb::CodedOutputStream.ComputeMessageSize(MaximizeConversionValue);
}
if (schemeCase_ == SchemeOneofCase.MaximizeConversions) {
size += 2 + pb::CodedOutputStream.ComputeMessageSize(MaximizeConversions);
}
if (schemeCase_ == SchemeOneofCase.TargetCpa) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetCpa);
}
if (schemeCase_ == SchemeOneofCase.TargetImpressionShare) {
size += 2 + pb::CodedOutputStream.ComputeMessageSize(TargetImpressionShare);
}
if (schemeCase_ == SchemeOneofCase.TargetRoas) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetRoas);
}
if (schemeCase_ == SchemeOneofCase.TargetSpend) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetSpend);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : CampaignExperiment.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (HasId) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id);
}
if (HasCampaignDraft) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(CampaignDraft);
}
if (HasName) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
}
if (HasDescription) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(Description);
}
if (HasTrafficSplitPercent) {
size += 2 + pb::CodedOutputStream.ComputeInt64Size(TrafficSplitPercent);
}
if (TrafficSplitType != global::Google.Ads.GoogleAds.V7.Enums.CampaignExperimentTrafficSplitTypeEnum.Types.CampaignExperimentTrafficSplitType.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TrafficSplitType);
}
if (HasExperimentCampaign) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(ExperimentCampaign);
}
if (Status != global::Google.Ads.GoogleAds.V7.Enums.CampaignExperimentStatusEnum.Types.CampaignExperimentStatus.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
}
if (HasLongRunningOperation) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(LongRunningOperation);
}
if (HreplacedtartDate) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(StartDate);
}
if (HasEndDate) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(EndDate);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : CampaignSharedSet.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (HasCampaign) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Campaign);
}
if (HreplacedharedSet) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(SharedSet);
}
if (Status != global::Google.Ads.GoogleAds.V7.Enums.CampaignSharedSetStatusEnum.Types.CampaignSharedSetStatus.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : CarrierConstant.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (HasId) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id);
}
if (HasName) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
}
if (HasCountryCode) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(CountryCode);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
19
Source : ChangeStatus.g.cs
with Apache License 2.0
from googleads
with Apache License 2.0
from googleads
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (HasLastChangeDateTime) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(LastChangeDateTime);
}
if (ResourceType != global::Google.Ads.GoogleAds.V7.Enums.ChangeStatusResourceTypeEnum.Types.ChangeStatusResourceType.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResourceType);
}
if (HasCampaign) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(Campaign);
}
if (HasAdGroup) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(AdGroup);
}
if (ResourceStatus != global::Google.Ads.GoogleAds.V7.Enums.ChangeStatusOperationEnum.Types.ChangeStatusOperation.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResourceStatus);
}
if (HasAdGroupAd) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(AdGroupAd);
}
if (HasAdGroupCriterion) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(AdGroupCriterion);
}
if (HasCampaignCriterion) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(CampaignCriterion);
}
if (HasFeed) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(Feed);
}
if (HasFeedItem) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(FeedItem);
}
if (HasAdGroupFeed) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(AdGroupFeed);
}
if (HasCampaignFeed) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(CampaignFeed);
}
if (HasAdGroupBidModifier) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(AdGroupBidModifier);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
See More Examples